Nested formulas

koreilly

New Member
Joined
Sep 5, 2019
Messages
3
I am trying to create a formula that includes the following

=IF(T2=0,IF(ISNUMBER(SEARCH("Redemption",E2)),"Redemption",IF(ISNUMBER(SEARCH("Subscription",E2)),"Subscription",)))

HOWEVER, if T2 does not equal 0, it will equal "Exchange" but i need it to also look at cell P2, and if p2 contains the word "Index" I need the formula to return "Exchange - Index"

Can someone help? do i need to do this in pieces, or is it possible to just have one formula?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Re: Excel Help, nested formulas

Hey,

Give this a try:
=IF(T2=0,IF(ISNUMBER(SEARCH("Redemption",E2)),"Redemption",IF(ISNUMBER(SEARCH("Subscription",E2)),"Subscription","")),IF(ISNUMBER(SEARCH("Index",P2)),"Exchange - Index", "Exchange"))
 
Last edited:
Upvote 0
Re: Excel Help, nested formulas

Like this?

=IF(T2=0,IF(ISNUMBER(SEARCH("Redemption",E2)),"Redemption",IF(ISNUMBER(SEARCH("Subscription",E2)),"Subscription",)),"Exchange"&IF(ISNUMBER(SEARCH("Index",P2))," - Index",""))
 
Upvote 0
Re: Excel Help, nested formulas

Hi & welcome to MrExcel.
How about
=IF(T2=0,IF(ISNUMBER(SEARCH("Redemption",E2)),"Redemption",IF(ISNUMBER(SEARCH("Subscription",E2)),"Subscription")),"Exchange"&IF(ISNUMBER(SEARCH("Index",P2))," - Index",""))
 
Upvote 0
Re: Excel Help, nested formulas

Hey,

Give this a try:
=IF(T2=0,IF(ISNUMBER(SEARCH("Redemption",E2)),"Redemption",IF(ISNUMBER(SEARCH("Subscription",E2)),"Subscription","")),IF(ISNUMBER(SEARCH("Index",P2)),"Exchange - Index", "Exchange"))


Thank you, unfortunately, didn't work because T2 did not equal zero.
 
Upvote 0
Re: Excel Help, nested formulas

You can shorten it a bit by using COUNTIF with wildcards instead of ISNUMBER(SEARCH like this:

=IF(T2=0,IF(COUNTIF(E2,"*Redemption*"),"Redemption",IF(COUNTIF(E2,"*Subscription*"),"Subscription","?")),"Exchange" & IF(COUNTIF(P2,"*Index*")," - Index",""))
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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