Multiple IF Statements for a Range of Cells

JubberB

New Member
Joined
Nov 1, 2019
Messages
39
Hey! I need to write a formula for multiple IF statements that return a result after searching a range of cells. Here's what I have so far:
Data Range B2:AQ2

If any cell in the range equals any of these values, populate cell AR2 with the appropriate text

="MTG","Meeting"," "

="O","Outbound"," "

="O","Outbound"," "

="OTH","Other"," "

="PJT","Special Project"," "

="TRG","Training"," "

="V","Vacation"," "

Thank you!
JubberB
 
My understanding is that this is the PRE "IFS" way to do it.

=IF(B2:AQ2="MTG","Meetings",IF(B2:AQ2="O","Outbound"),IF(B2:AQ2="OTH","Other",IF(B2:AQ2="PJT","Special Project",IF(B2:AQ2="TRG","Training",IF(B2:AQ2="V","Vacation","No Values Provided")))))

But again, if you want a list of comma seperated values of each value that appears if there are more than one, than you are out of luck with this formula.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
My understanding is that this is the PRE "IFS" way to do it.

=IF(B2:AQ2="MTG","Meetings",IF(B2:AQ2="O","Outbound"),IF(B2:AQ2="OTH","Other",IF(B2:AQ2="PJT","Special Project",IF(B2:AQ2="TRG","Training",IF(B2:AQ2="V","Vacation","No Values Provided")))))

But again, if you want a list of comma seperated values of each value that appears if there are more than one, than you are out of luck with this formula.

Understood. I will have other values in the cell range, but they require no action / result. I will only have one of the values in the formula that requires and action / result. So, if one of the values appears in the cell rage, I need the corresponding result to appear in the target cell.
Thanks,
JohnB
 
Upvote 0
Then you will need to remove those values. This is probably not the best way to do it. This will look at all the value, find the first cell that contains one of those values, and then trigger the corresponding result.

I don't know the other way. Some of the other guys on this forum are really good though, if you ask your question clearly I imagine one of them will swoop down and answer for you.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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