Adding if statement to existing formula

conniehong

New Member
Joined
Nov 30, 2015
Messages
23
Hi All,

I need your expertise. I have an existing formula (that I did not create) and I want to add in the statement that if cell C6 contains "One Off" that I want the formula to return blank. Can anyone help me out and incorporate this statement into the below formula?

Thanks in advance

=IF(ISERROR(VLOOKUP(SUBSTITUTE(SUBSTITUTE(CONCATENATE(H6,".",I6,".",J6,".",AP6,".",AU6,".",AQ6,".",AR6)," ","_"),"-","_"),Templates!O$24:P$47,2,FALSE))=TRUE,"",(VLOOKUP(SUBSTITUTE(SUBSTITUTE(CONCATENATE(H6,".",I6,".",J6,".",AP6,".",AU6,".",AQ6,".",AR6)," ","_"),"-","_"),Templates!O$24:P$47,2,FALSE)))
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
See if this works:

=IF(C6="one off","",IFERROR(VLOOKUP(SUBSTITUTE(SUBSTITUTE(CONCATENATE(H6,".",I6,".",J6,".",AP6,".",AU6,".",AQ6,".",AR6)," ","_"),"-","_"),Templates!O$24:P$47,2,FALSE),""))
 
Upvote 0
See if this works:

=IF(C6="one off","",IFERROR(VLOOKUP(SUBSTITUTE(SUBSTITUTE(CONCATENATE(H6,".",I6,".",J6,".",AP6,".",AU6,".",AQ6,".",AR6)," ","_"),"-","_"),Templates!O$24:P$47,2,FALSE),""))

Hi Steve,
Thanks for your help. However, this did not work. Error states... Circular Reference. Any other suggestions?
 
Upvote 0
Have you placed it in C6? You cant do that. It needs to check C6.

No the original formula is on Cell AS6. That's where I pasted it.
At any rate, I found another solution. All the information that goes into my form A (where this formula was) get's pasted to another form (B). I was able to edit the formula on form B to incorporate this new if statement.

Thanks again for helping me. I really appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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