using multiple IF commands

chrisjako

New Member
Joined
Apr 10, 2014
Messages
28
=IF(MATCH(E:E,'TMC CSV Upload'!P$2:P$54,0),'Export To CSV'!Z$2,"misc",IF(MATCH(E:E,'TMC CSV Upload'!P$55:P$84,0),'Export To CSV'!Z$3,"misc",))

I'm trying to do a fill down so that cells if cells in P2:P54 match it returns Z2 or if P55:P84 match then it returns value of Z3

any anyone please help with the formula?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
let us say we are looking to find matches between A and B columns
in column C use this formula

=if(B2<>A2,"",if(row()<55,Z2,Z3))
 
Upvote 0
try:

=IF(ISNUMBER(MATCH(E:E,'TMC CSV Upload'!P$2:P$54,0)),'Export To CSV'!Z$2,IF(ISNUMBER(MATCH(E:E,'TMC CSV Upload'!P$55:P$84,0)),'Export To CSV'!Z$3,"misc"))
 
Upvote 0
Hi,

Would that work for you?
Code:
=IF(P2=E2,IF(ROW()<55,$Z$2,$Z$3), "")

What do you want to do with that "misc"?

Olivier.
 
Upvote 0
try:

=IF(ISNUMBER(MATCH(E:E,'TMC CSV Upload'!P$2:P$54,0)),'Export To CSV'!Z$2,IF(ISNUMBER(MATCH(E:E,'TMC CSV Upload'!P$55:P$84,0)),'Export To CSV'!Z$3,"misc"))


BarryL you are truly AWESOME! - worked a treat I need to add about 40 more statements to this but tried the next and it worked too

May you have a blessed day - thank you all to who replied, this forum is amazing!
 
Upvote 0

Forum statistics

Threads
1,216,737
Messages
6,132,430
Members
449,728
Latest member
sanamali

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