I need to create a formula that does the following:
If A2:A3000="DA01 AND G2:G3000=2 AND I2:I3000>180 then count the number of spaces where A2:A3000="DA01 AND G2:G3000=2 AND I2:I3000>180 other wise leave it blank.
I need to create a formula that does the following:
If A2:A3000="DA01 AND G2:G3000=2 AND I2:I3000>180 then count the number of spaces where A2:A3000="DA01 AND G2:G3000=2 AND I2:I3000>180 other wise leave it blank.
Disreguard--I figured it out. This is what I am using:
=SUMPRODUCT(--(CSMP!A2:CSMP!A3000="DA01"),--(CSMP!G2:CSMP!G3000=2),--(CSMP!I2:CSMP!I3000>180))
Thanks for posting your solution.
If you intend to use this formula exclusively in XL2007 you can in fact use the new COUNTIFS function:
=COUNTIFS(CSMP!A2:CSMP!A3000,"DA01",CSMP!G2:CSMP!G3000,2,CSMP!I2:CSMP!I3000,">180")
this function is more efficient than SUMPRODUCT but unlike SUMPRODUCT is not backwards compatible with XL version pre XL2007.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assisted or failed to assist you I welcome your Feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks