ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   IF statements (https://www.excelbanter.com/excel-programming/352948-if-statements.html)

childothe1980s

IF statements
 
Hello:

I don't understand why I can't get this IF statement to work. In column E,
I have among other things cells that contain the phrase "CREDIT CARD".

In column C, I want the cells to say "VISA" for cells in E that say "CREDIT
CARD".

So, here's my statement:
=IF($E7="MBI CREDIT CARD","VISA","")

Why isn't this working? Instead of showing "VISA", it's blank! That's not
correct.

Thanks!

childofthe1980s

Jim Thomlinson[_5_]

IF statements
 
Just a WAG but try

=IF(trim($E7)="MBI CREDIT CARD","VISA","")

Assuming that the spelling a capitalization is correct...
--
HTH...

Jim Thomlinson


"childothe1980s" wrote:

Hello:

I don't understand why I can't get this IF statement to work. In column E,
I have among other things cells that contain the phrase "CREDIT CARD".

In column C, I want the cells to say "VISA" for cells in E that say "CREDIT
CARD".

So, here's my statement:
=IF($E7="MBI CREDIT CARD","VISA","")

Why isn't this working? Instead of showing "VISA", it's blank! That's not
correct.

Thanks!

childofthe1980s


Karthik Bhat - Bangalore

IF statements
 
Hi

This should work

=IF(ISERROR(FIND("CREDIT CARD",UPPER($E7),1)),"","VISA")



All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com