EXCEL help needed!

Oifish

Senior member
Dec 21, 2003
465
1
81
What I'm trying to do is calculate the total number of products launched ontime for a certain month. Its setup like:

Product............Planned Launch Date.....................Ontime?
A.....................MAR-07........................................x
B.....................MAR-07
C.....................APR-07........................................x
D.....................MAY-07........................................x

Thats just a crappy mockup but you get the point. I need a formula that will look at all the products with a launch date of MAR-07 and have an 'x' marked in the ontime column. Access would be a much better program to use for this idea but all the lazy f*cks here are afraid to use it. Help ASAP would be greatly appreciated. Thanks!

EDIT: I tried using the SUMPRODUCT, and COUNTIF formulas but I can't seem to get them to work and SUMPRODCUT is for numbers only.
 

wayliff

Lifer
Nov 28, 2002
11,720
11
81
=IF(CELL="MAR-07", "X", "")
Then copy it all the way down?

Change "cell" for the actual cell
 

wayliff

Lifer
Nov 28, 2002
11,720
11
81
then use this to count all the X's
=COUNTIF(RANGE, "X")

Change range for the actual range where the X's are
 

davenyl

Junior Member
Apr 19, 2004
14
0
0
=COUNTIF(B2:B5,"MAR-07")-COUNTIF(C2:C5,"<>X")

Just realized that won't work when there are different months. oh well.
 

AgentDib

Member
Nov 21, 2002
140
0
0
I tackle something very similar to this with a straightforward VB macro. I'll paste a real code snippet when I get back to my system tomorrow, but here's some pseudocode:

Dim Rows as Variant
Dim TotalCount as Variant
totalcount = 0
- Start Loop: Step through each row variable (Rows) in column B, starting with the last filled in row and incrementing -1, then stopping at row 2 (if you have a header row).
---- If Cells(B,Rows).value = "Mar-07" then
---------- If Cells(C,Rows).value = "x" then
-------------------- TotalCount = TotalCount + 1
-----------End If
----- End If
- End Loop
MsgBox("We launched " & TotalCount & " products on time this month!"

You would then increase the flexibility by capturing the value of the selected cells content as the month variable so the user can count any month simply by clicking on a square from that month and then running the macro.
 

Oifish

Senior member
Dec 21, 2003
465
1
81
I got it! I decided to not mess with text and convert all the 'x' to 1. Then used the DATEVALUE function to turn the dates into numbers. Then used this formula: =SUMPRODUCT(('CD Launch Metric'!D470=DATEVALUE("6/1/2007"))*('CD Launch Metric'!J4:J70=1))
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |