Help with formula - IF statement

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi everyone,

Thanks in advance for all the great help. I created the formula below and it works like it should. However I need to tweak it and don't have a clue how to do that.

=IFERROR(IF(S7="P&L Expense","Deposit Variance"&" "&RIGHT(Q7,10),"Change Order"&" "&RIGHT(Q8,10)),"")

What I need to say is this: If E7 CONTAINS "3742" then ignore everything above and the result should be "No Cash Sale". If E7 doesn't contain "3742" then do the formula above. Perhaps there's an easier way to write the formula above as well but I'm not sure.

Again thanks for all the assistance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about
Excel Formula:
=IF(ISNUMBER(FIND("3742",E7)),"No Cash Sale",IF(S7="P&L Expense","Deposit Variance"&" "&RIGHT(Q7,10),"Change Order"&" "&RIGHT(Q8,10)))
 
Upvote 0
try this

=IF(ISNUMBER(SEARCH(3742,E7)),"No Cash Sale",IFERROR(IF(S7="P&L Expense","Deposit Variance"&" "&RIGHT(Q7,10),"Change Order"&" "&RIGHT(Q8,10)),""))
 
Upvote 0
IFERROR(IF(E7=3742, "NO CASH SALE",IF(S7="P&L Expense","Deposit Variance"&" "&RIGHT(Q7,10),"Change Order"&" "&RIGHT(Q8,10)),"")

assumes 3742 is a number and not text.
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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