Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Nested IF confusion!

Help needed for this newbie ... I'm using Excel2007 btw.
This is so simple but I just don't know why I can't get it to work:

A B
10 =50
9 =40<50
8 =30<40
7 =20<30
6 =10<20
5 =5<10
4 =3<4
3 =2<3
2 =1<2
1 0<1
0 0

I just need to look up a value in Cell C1, compare to col B, look up its
corresponding value in col A, and put the value in D1.

I tried the nested IF work-around at http://www.cpearson.com/excel/nested.htm
but it's still not working correctly. Help?

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

Maybe this

=LOOKUP(C1,B1:B20,A1:A20)

Sort on column B in ascending order.

HTH,
Paul

--

"JayPee" wrote in message
...
Help needed for this newbie ... I'm using Excel2007 btw.
This is so simple but I just don't know why I can't get it to work:

A B
10 =50
9 =40<50
8 =30<40
7 =20<30
6 =10<20
5 =5<10
4 =3<4
3 =2<3
2 =1<2
1 0<1
0 0

I just need to look up a value in Cell C1, compare to col B, look up its
corresponding value in col A, and put the value in D1.

I tried the nested IF work-around at
http://www.cpearson.com/excel/nested.htm
but it's still not working correctly. Help?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Nested IF confusion!

You cannot use those text representation of greater than equal to less than
equal to etc if that is what you do?

You would be better served if you switch order both column and row wise

0 1
1 2
2 3
3 4
10 6
20 7
30 8
40 9
50 10


then use

=IF(C1=0,0,VLOOKUP(C1,A1:B11,2))

--


Regards,


Peo Sjoblom

"JayPee" wrote in message
...
Help needed for this newbie ... I'm using Excel2007 btw.
This is so simple but I just don't know why I can't get it to work:

A B
10 =50
9 =40<50
8 =30<40
7 =20<30
6 =10<20
5 =5<10
4 =3<4
3 =2<3
2 =1<2
1 0<1
0 0

I just need to look up a value in Cell C1, compare to col B, look up its
corresponding value in col A, and put the value in D1.

I tried the nested IF work-around at
http://www.cpearson.com/excel/nested.htm
but it's still not working correctly. Help?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Nested IF confusion!


I see ... thank you!!!

"Peo Sjoblom" wrote:

You cannot use those text representation of greater than equal to less than
equal to etc if that is what you do?

You would be better served if you switch order both column and row wise

0 1
1 2
2 3
3 4
10 6
20 7
30 8
40 9
50 10


then use

=IF(C1=0,0,VLOOKUP(C1,A1:B11,2))

--


Regards,


Peo Sjoblom

"JayPee" wrote in message
...
Help needed for this newbie ... I'm using Excel2007 btw.
This is so simple but I just don't know why I can't get it to work:

A B
10 =50
9 =40<50
8 =30<40
7 =20<30
6 =10<20
5 =5<10
4 =3<4
3 =2<3
2 =1<2
1 0<1
0 0

I just need to look up a value in Cell C1, compare to col B, look up its
corresponding value in col A, and put the value in D1.

I tried the nested IF work-around at
http://www.cpearson.com/excel/nested.htm
but it's still not working correctly. 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
date confusion manzoor New Users to Excel 2 June 16th 08 03:52 PM
MDI Confusion CMoya Excel Discussion (Misc queries) 1 February 21st 08 02:11 PM
if statement confusion CV Excel Discussion (Misc queries) 10 October 21st 07 08:55 PM
Conditional Confusion [email protected] Excel Worksheet Functions 1 August 16th 07 03:36 PM
Confusion..... Eric @ CMN, Evansville Excel Discussion (Misc queries) 2 December 27th 05 07:15 PM


All times are GMT +1. The time now is 01:08 AM.

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"