whats wrong with this formula

Trilogist

New Member
Joined
Feb 5, 2008
Messages
9
Code:
[COLOR=#1F497D][FONT=Calibri]=IF((OR('Wk 1'!$E6="Mortgage",'Wk 1'!$E6="re-mortgage",'Wk 1'!$E6="re-mortgage PED")),IF((OR('Wk 1'!$F6="EA",'Wk 1'!$F6="Lettings")),"",'Wk 1'!$C6)," ")[/FONT][/COLOR]

I am trying to get the cell to display the contents of C6 or return blank IF a combination of E6 equal to 'Mortgage' 're-mortgage' 're-mortgage ped AND IF F6 is equal to 'EA' or 'Lettings'. At the moment the cell returns blank every time.

Hope this makes sense.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=IF((OR('Wk 1'!$E6="Mortgage",'Wk 1'!$E6="re-mortgage",'Wk 1'!$E6="re-mortgage PED")),IF((OR('Wk 1'!$F6="EA",'Wk 1'!$F6="Lettings")),'Wk 1'!$C6)," ")

I think there were 2 sets of "" at the end try this
 
Upvote 0
I think there were 2 sets of "" at the end try this

You'll need them to suppress the FALSE if the second condition is not met:

=IF(OR('Wk 1'!$E6="Mortgage",'Wk 1'!$E6="re-mortgage",'Wk 1'!$E6="re-mortgage PED"),IF((OR('Wk 1'!$F6="EA",'Wk 1'!$F6="Lettings")),'Wk 1'!$C6,""),"")

The original post just had them around the wrong way, i.e. "",'Wk 1'!$C6 rather than 'Wk 1'!$C6,""
 
Upvote 0
You'll need them to suppress the FALSE if the second condition is not met:

=IF(OR('Wk 1'!$E6="Mortgage",'Wk 1'!$E6="re-mortgage",'Wk 1'!$E6="re-mortgage PED"),IF((OR('Wk 1'!$F6="EA",'Wk 1'!$F6="Lettings")),'Wk 1'!$C6,""),"")

The original post just had them around the wrong way, i.e. "",'Wk 1'!$C6 rather than 'Wk 1'!$C6,""

Thank you very much. I love this place.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
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