Return Value Baed on Criteria

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
311
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

How do I incorporate this?

If column called Groupings = "Big" and the column "Sub Grouping" does not contain "Tasks" then return "Investment"

If column "Groupings" = "GDE" or "Tasks" return "Fail"

Everyone else return "Other".
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi.

=IF(AND(Groupings="Big", ISNUMER(SEARCH("Tasks", Sub Grouping))=FALSE),"Investment", IF(OR(Groupings="GDE", Groupings = "Tasks"), "Fail", "Other"))
 
Last edited:
Upvote 0
Hi.

=IF(AND(Groupings="Big", ISNUMER(SEARCH("Tasks", Sub Grouping))=FALSE),"Investment", IF(OR(Groupings="GDE", Groupings = "Tasks"), "Fail", "Other"))

It's bringing a "#NAME?" error, is the "ISNUMBER" correct?
 
Upvote 0
It's bringing a "#NAME?" error, is the "ISNUMBER" correct?

The formula looks correct. Did you replace the "Groupings", "Sub Grouping" with your actual column name (if it's a table) or cell address ?
For example if Groupings is in column B, Replace "Groupings" with "B2" and copy the formula down.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Groupings[/TD]
[TD]Sub Grouping[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Big[/TD]
[TD]Tasks[/TD]
[TD]=IF(AND(A2="Big", ISNUMER(SEARCH("Tasks", B2))=FALSE),"Investment", IF(OR(A2="GDE", A2 = "Tasks"), "Fail", "Other"))[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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