Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 139
Default IF Statement troubles

I have a list box in F5 with 24, 18,14, 12,10. I need F7 to return if:
24=2400
18=1350
14=816
12=600
10=416

The first part of the below formula works, but I can't get it to work past
that. Could someone please help?

=IF(F5=(24),2400,If(or(f5=(18),1350)))

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default IF Statement troubles

Try

=VLOOKUP(F5,{24,2400;18,1350;14,816;12,600;10,416} ,2,FALSE)

--

HTH

Bob

"Tina" wrote in message
...
I have a list box in F5 with 24, 18,14, 12,10. I need F7 to return if:
24=2400
18=1350
14=816
12=600
10=416

The first part of the below formula works, but I can't get it to work past
that. Could someone please help?

=IF(F5=(24),2400,If(or(f5=(18),1350)))

Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default IF Statement troubles

"Tina" wrote:
I have a list box in F5 with 24, 18,14, 12,10.
I need F7 to return if:
24=2400
18=1350
14=816
12=600
10=416


If you are not concerned about errors, try:

=LOOKUP(F5,{10,12,14,18,24},{416,600,816,1350,2400 })


The first part of the below formula works,
but I can't get it to work past that.

[....]
=IF(F5=(24),2400,If(or(f5=(18),1350)))


FYI, the equivalent IF expression is:

=if(F5=10,416,if(F5=12,600,if(F5=14,816,
if(F5=18,1350,2400))))


----- original message -----

"Tina" wrote:
I have a list box in F5 with 24, 18,14, 12,10. I need F7 to return if:
24=2400
18=1350
14=816
12=600
10=416

The first part of the below formula works, but I can't get it to work past
that. Could someone please help?

=IF(F5=(24),2400,If(or(f5=(18),1350)))

Thank you!

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
Troubles Jonas Krogh Excel Discussion (Misc queries) 1 October 22nd 09 11:14 AM
Formula troubles Excluxe Excel Discussion (Misc queries) 6 July 16th 07 04:16 PM
COM Add-in Troubles Howard Excel Discussion (Misc queries) 0 May 22nd 07 01:59 PM
If, then statement troubles beez Excel Worksheet Functions 1 January 16th 07 11:31 PM
IF troubles JG Excel Worksheet Functions 6 December 24th 06 04:58 AM


All times are GMT +1. The time now is 06:25 AM.

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"