Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default lookup/match/index help

I am having trouble and I am hoping someone can help. In Column A, I have a
list of numbers between 1 and 4(Levels). In Column B, I have a list of
decimal numbers.


Row Column A Column B
1 1 1.05
2 2 1.12
3 3 1.02
4 3 1.06
5 4 1.10
6 2 1.05
7 3 1.13

The best way to explain what I am trying to do is give an example. Lets say
I am in Cell C7. I am wanting to find the last instance of a Level (Column A)
that is one higher than the current Level (so the level for row 7 is 3, so I
am needing to find the last instance of a level 2, or in this case Row 6) and
multiply the number in B7 with the corresponding number from that last
instance. So in C7 it would be 1.1865 (1.13*1.05). I hope this is written to
be understood. Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default lookup/match/index help

Ton,

In C2, enter the formula

=INDEX(B:B,SUMPRODUCT(MAX(($A$1:A1=(A2-1))*ROW($A$1:A1))))*B2

and copy down to match your column B.

HTH,
Bernie
MS Excel MVP


"TonTon165" wrote in message
...
I am having trouble and I am hoping someone can help. In Column A, I have a
list of numbers between 1 and 4(Levels). In Column B, I have a list of
decimal numbers.


Row Column A Column B
1 1 1.05
2 2 1.12
3 3 1.02
4 3 1.06
5 4 1.10
6 2 1.05
7 3 1.13

The best way to explain what I am trying to do is give an example. Lets say
I am in Cell C7. I am wanting to find the last instance of a Level (Column A)
that is one higher than the current Level (so the level for row 7 is 3, so I
am needing to find the last instance of a level 2, or in this case Row 6) and
multiply the number in B7 with the corresponding number from that last
instance. So in C7 it would be 1.1865 (1.13*1.05). I hope this is written to
be understood. Any help would be greatly 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
index/match/lookup??? Emma Aumack Excel Discussion (Misc queries) 6 January 19th 07 12:14 AM
Lookup or Index/Match Scorpvin Excel Discussion (Misc queries) 1 May 16th 06 07:35 PM
Match Index Lookup Kevin Excel Discussion (Misc queries) 1 March 17th 06 04:40 PM
lookup/index/match - help! Ellen G. Excel Discussion (Misc queries) 3 February 13th 06 09:10 PM
index / match /lookup ? help andrewm Excel Worksheet Functions 8 July 21st 05 02:55 PM


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