Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default IF statements

Hi

This should work

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
IF & AND statements hip Excel Worksheet Functions 5 June 7th 06 11:36 PM
if/and statements BobVA Excel Worksheet Functions 6 May 15th 06 06:02 PM
if statements tom Excel Discussion (Misc queries) 3 November 18th 05 09:32 AM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM


All times are GMT +1. The time now is 05:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"