Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default 2 sets of =if strings in excel 2007

This question references an earlier thread of mine.
If the value of H2=184,then the first =if statement should be used to
display a value in B30.
If the value of H2=189, then the second =if statement should be used to
display a value in B30.
The formula is entered in B30.
=IF(B29=22,"-12.2",IF(B29=21,"-11.6",IF(B29=20,"-11.0",IF(B29=19,"-10.5",
etc...
=IF(B29=22,"-12.5",IF(B29=21,"-11.9",IF(B29=20,"-11.4",IF(B29=19,"-10.8",
etc...
What could be a quick/easy way to express this?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 2 sets of =if strings in excel 2007

You should create a 3 column table like this:

...........A..........B..........C
1...................184.......189
2.......22......-12.2.....-12.5
3.......21......-11.6.....-11.9
4.......20......-11.0.....-11.4
5.......19......-10.5.....-10.8

Then your formula in B30 is:

=VLOOKUP(B29,A1:C5,MATCH(H2,A1:C1,0),0)


--
Biff
Microsoft Excel MVP


"v1rt8" wrote in message
...
This question references an earlier thread of mine.
If the value of H2=184,then the first =if statement should be used to
display a value in B30.
If the value of H2=189, then the second =if statement should be used to
display a value in B30.
The formula is entered in B30.
=IF(B29=22,"-12.2",IF(B29=21,"-11.6",IF(B29=20,"-11.0",IF(B29=19,"-10.5",
etc...
=IF(B29=22,"-12.5",IF(B29=21,"-11.9",IF(B29=20,"-11.4",IF(B29=19,"-10.8",
etc...
What could be a quick/easy way to express this?




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
Excel graph 3 sets of data. 2 sets as lines 1 as column? AndyN Charts and Charting in Excel 2 July 11th 08 01:18 PM
How to create icon sets for excel 2007 conditionnal formating ? Julien Montserrat Excel Discussion (Misc queries) 1 January 30th 07 05:50 PM
Excel 2007 PivotTable Named Sets as a filter DaBus11 Excel Discussion (Misc queries) 0 July 27th 06 02:47 AM
Excel 2007 Issue: Charting numerous strings of data Hunter Charts and Charting in Excel 4 July 26th 06 11:15 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM


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