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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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