Formula for multiple conditions?

rraymond

New Member
Joined
May 26, 2011
Messages
17
I need help creating a report based on a fluid raw data file. Earlier, in another post, I got help and managed to generate this formula:

=IF(ISNA(MATCH("NorthwestAcuraAirport Acura",'April 2011 Raw Data'!$A:$A,0)),0,INDEX('April 2011 Raw Data'!I:I,MATCH("NorthwestAcuraAirport Acura",'April 2011 Raw Data'!$A:$A,0)))

While this formula is wonderful, I still need to update the 'NorthwestAcuraAirport Acura" portion hundreds of times based upon Zone/Make/Dealer, and what happens if the order of the dealers change? Then I have to modify the formulas each time.

A better solution would be a similar formula that searches for the condition of where Zone (Northwest) Make (Acura) and Dealer are present, based upon a cell location - or something like that. I know this is vague, but can anyone help? I'm using Excel 2003.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You can replace "NorthwesternAcuraAirport Acura" with a cell reference containing the same..

=IF(ISNA(MATCH=(A1,'April 2011 Raw Data'!$A:$A,0)),0,INDEX('April 2011 Raw Data'!I:I,MATCH(A1,'April 2011 Raw Data'!$A:$A,0)))

A1 = NorthwesternAcuraAirport Acura

Now if your needs change, you just have to change the value in A1, not the formula.
 
Upvote 0
Jonmo, you're good, you understand what I'm getting at, but I'm being a little unclear. The constant is the dealer name, so there's that cell reference that works fine, but the zones and dealer names change. So... I would need a formula that looks for the value in your A1 only if Northwest and Acura were present. If not, then return a zero value. This way I can embed formulas in the NW column that just search for NW data, SW column, etc.
 
Upvote 0
Okay, really struggling with this here. I came up with this formula, which in a previous config gave me a 0 answer, which meant I was doing something right. But now all I'm getting is a general error message about too many arguments or missing a parenthesis or something.

=IF(ISNA(MATCH(B2,'April 2011 Raw Data'!$A:$A,0)),0,INDEX('April 2011 Raw Data'!I:I,MATCH(B2,'April 2011 Raw Data'!$A:$A,0),IF(AND('April 2011 Raw Data'!$C:$C="Northwest",'April 2011 Raw Data'!$D:$D="Acura",0))))

B2 refers to my dealer name, which can vary in that cell location every month. What I need is a formula that searches for the value in B2 and only returns it if "Northwest" and "Acura" are also present in the same row.

Please help.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top