#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF

The scenario as follows:-
if N7=A, 420
if N7=B, 288
if N7=C, 130
if N7=D, 126

Appreciate your help!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF

=IF(N7="A",420,IF(N7="B",288,IF(N7="C",130,IF(N7=" D",126,""))))


"Guey Lan" wrote:

The scenario as follows:-
if N7=A, 420
if N7=B, 288
if N7=C, 130
if N7=D, 126

Appreciate your help!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF

Thanks....

"Teethless mama" wrote:

=IF(N7="A",420,IF(N7="B",288,IF(N7="C",130,IF(N7=" D",126,""))))


"Guey Lan" wrote:

The scenario as follows:-
if N7=A, 420
if N7=B, 288
if N7=C, 130
if N7=D, 126

Appreciate your help!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default IF

Another suggestion - which could be useful if your scenario expands

=VLOOKUP(N7,{"A",420;"B",288;"C",130;"D",126},2,0)

The table could be placed in A1:D2 and
=VLOOKUP(N7,A1:D2,2,0)


"Guey Lan" wrote:

The scenario as follows:-
if N7=A, 420
if N7=B, 288
if N7=C, 130
if N7=D, 126

Appreciate your help!!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default IF

Hi

=CHOOSE(CODE(N7)-64,420,288,130,126)



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"Guey Lan" wrote in message
...
The scenario as follows:-
if N7=A, 420
if N7=B, 288
if N7=C, 130
if N7=D, 126

Appreciate your help!!





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



All times are GMT +1. The time now is 06:31 PM.

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

About Us

"It's about Microsoft Excel"