if statement formula

Ovi

New Member
Joined
Jan 20, 2011
Messages
9
I have a problem with the following formula:

as it is returning me 0 even when 'Swap Summary'!$C:$C='Credit&Finance'!A30



=IF('Swap Summary'!$B:$B="RBS",IF('Swap Summary'!$C:$C='Credit&Finance'!A30,VLOOKUP('Credit&Finance'!A30,'Swap Summary'!$C:$E,3,FALSE),"0"),"0")

does anyone know why?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You are asking for the first condition, ie =IF('Swap Summary'!$B:$B="RBS", to be true before it looks at the next part IF('Swap Summary'!$C:$C='Credit&Finance'!A30

Are both conditions true ?
 
Upvote 0
yes,
if the first one is true, i want then to look into the second if statement and if the second is true i want to return the vlookup data
otherwise 0
 
Upvote 0
The problem is that you are looking for a range, ie everthing in column B to see if it is 'RBS' . So are you simply trying to figure out whether RBS appears anywhere in column B and if it does then check if 'Credit&Finance'!A30 exists anywhere in column C ?
 
Upvote 0
You are referencing the whole column B and C to one cell.
Unless you are using array formula that will not work.
What would you like to achive?
 
Upvote 0
Robert as discussed with Paul i m looking for everthing in column B to see if it is 'RBS' and if RBS appears anywhere in column B , then check if 'Credit&Finance'!A30 exists anywhere in column C and if that exist returning me the related data, otherwise 0
 
Upvote 0
Is there likely to be an occasion where for example RBS appears more then once in column B, if so what should happen ? and the same for column C
 
Upvote 0
yes RBS can be in more than one cell in column B, that s why then I am looking for a specific other data in column C
 
Upvote 0
=IF(COUNTIF('Swap Summary'!$B:$B,"RBS")>0,IF(COUNTIF('Swap Summary'!$C:$C,'Credit&Finance'!A30)>0,VLOOKUP('Credit&Finance'!A30,'Swap Summary'!$C:$E,3,FALSE),"0"),"0")

Try this.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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