#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JK
 
Posts: n/a
Default IF STATEMENT

This is what I'm trying to do...

IF
A2 IS EQUAL TO 8 THEN DISPLAY 228.0 IN A3
A2 IS EQUAL TO 10 THEN DISPLAY 182.4 IN A3
A2 IS EQUAL TO 12 THEN DISPLAY 152.0 IN A3
A2 IS EQUAL TO 16 THEN DISPLAY 114.0 IN A3
A2 IS EQUAL TO 20 THEN DISPLAY 91.2 IN A3
A2 IS EQUAL TO 24 THEN DISPLAY 76.0 IN A3

Could someone show me easiest way to do this?
Much appreciated...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default IF STATEMENT

Hi

=IF(A2=8,228,IF(A2=10,182.4,IF(A2=12,152,IF(A2=16, 114,IF(A2=20,91.2,IF(A2=24,76,FALSE))))))

HTH
regards from Brazil
Marcelo

"JK" escreveu:

This is what I'm trying to do...

IF
A2 IS EQUAL TO 8 THEN DISPLAY 228.0 IN A3
A2 IS EQUAL TO 10 THEN DISPLAY 182.4 IN A3
A2 IS EQUAL TO 12 THEN DISPLAY 152.0 IN A3
A2 IS EQUAL TO 16 THEN DISPLAY 114.0 IN A3
A2 IS EQUAL TO 20 THEN DISPLAY 91.2 IN A3
A2 IS EQUAL TO 24 THEN DISPLAY 76.0 IN A3

Could someone show me easiest way to do this?
Much appreciated...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bearacade
 
Posts: n/a
Default IF STATEMENT


You can:

1) Use vlookup

2) Use if:

=IF(A2=8,228,IF(A2=10,182.4,IF(A2=12,152,IF(A2=16, 114,IF(A2=20,91.2,IF(A2=24,76,"Out
of Range"))))))

3) Use lookup:

=LOOKUP(A2, {8,10,12,16,20,24;228,182.4,152,114,91.2,76})


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=556149

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JK
 
Posts: n/a
Default IF STATEMENT

THANKS!

"Marcelo" wrote:

Hi

=IF(A2=8,228,IF(A2=10,182.4,IF(A2=12,152,IF(A2=16, 114,IF(A2=20,91.2,IF(A2=24,76,FALSE))))))

HTH
regards from Brazil
Marcelo

"JK" escreveu:

This is what I'm trying to do...

IF
A2 IS EQUAL TO 8 THEN DISPLAY 228.0 IN A3
A2 IS EQUAL TO 10 THEN DISPLAY 182.4 IN A3
A2 IS EQUAL TO 12 THEN DISPLAY 152.0 IN A3
A2 IS EQUAL TO 16 THEN DISPLAY 114.0 IN A3
A2 IS EQUAL TO 20 THEN DISPLAY 91.2 IN A3
A2 IS EQUAL TO 24 THEN DISPLAY 76.0 IN A3

Could someone show me easiest way to do this?
Much appreciated...

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default IF STATEMENT

thanks for the feedback


"JK" escreveu:

THANKS!

"Marcelo" wrote:

Hi

=IF(A2=8,228,IF(A2=10,182.4,IF(A2=12,152,IF(A2=16, 114,IF(A2=20,91.2,IF(A2=24,76,FALSE))))))

HTH
regards from Brazil
Marcelo

"JK" escreveu:

This is what I'm trying to do...

IF
A2 IS EQUAL TO 8 THEN DISPLAY 228.0 IN A3
A2 IS EQUAL TO 10 THEN DISPLAY 182.4 IN A3
A2 IS EQUAL TO 12 THEN DISPLAY 152.0 IN A3
A2 IS EQUAL TO 16 THEN DISPLAY 114.0 IN A3
A2 IS EQUAL TO 20 THEN DISPLAY 91.2 IN A3
A2 IS EQUAL TO 24 THEN DISPLAY 76.0 IN A3

Could someone show me easiest way to do this?
Much appreciated...

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 statement that does nothing when false higherlimits Excel Discussion (Misc queries) 1 May 26th 06 06:11 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If Statement? John Excel Discussion (Misc queries) 1 January 16th 06 03:47 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 04:15 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"