Result from either VLOOKUP or INDEX/MATCH put under correct column

BradleyS

Active Member
Joined
Oct 28, 2006
Messages
333
Office Version
  1. 2010
Platform
  1. Windows
How to I test the result from either VLOOKUP or INDEX/MATCH and then put it under the relevant column?

I have entered 2 examples below of where I would like the values to show because they are within the value range for each ID
I can't seem to add the greater than or less than elements to either formula to get it to work.

Here is my data:

Excel 2010
ABCDEFGHI
1ideventdatevalueidValue <59Value >=59 <=64Value >=65 <=74Value>=75
2322/06/201550350
36903/04/2014697
410828/04/2014499
515316/05/2014556969
616819/05/201465108
717729/05/201447110
8135
9153
10168
11177
Sheet39
Cell Formulas
RangeFormula
F2=VLOOKUP(E2,A1:C7,3,FALSE)
H5=INDEX(C1:C7,MATCH(E5,A1:A7,0))
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Could you have a situation where the same id appears twice & both have a value in the same range like


Excel 2013/2016
ABC
1ideventdatevalue
2322/06/201550
36903/04/201469
410828/04/201449
515316/05/201455
616819/05/201465
717729/05/201477
8329/06/201440
Calc


If so, what do you want as a result?
 
Upvote 0
No the ID's in both tables are unique and will only appear once. However, the end result table E-I will have more ID's and therefore some may not have values that are in the 1st table A-C
 
Upvote 0
In that case if you are happy to change the headers you could use


Excel 2013/2016
ABCDEJKLM
1ideventdatevalueid59647475
2322/06/201550350000
36903/04/20146970000
410828/04/20144990000
515316/05/2014556900690
616819/05/20146510849000
717729/05/2014771100000
81350000
915355000
1016800650
1117700077
Calc
Cell Formulas
RangeFormula
J2=SUMIFS($C:$C,$A:$A,$E2,$C:$C,"<="&J$1)
K2=SUMIFS($C:$C,$A:$A,$E2,$C:$C,"<="&K$1,$C:$C,">"&J$1)
L2=SUMIFS($C:$C,$A:$A,$E2,$C:$C,"<="&L$1,$C:$C,">"&K$1)
M2=SUMIFS($C:$C,$A:$A,$E2,$C:$C,">="&M$1)
 
Upvote 0
I'm happy to change the headers, so yes that would work fine. Thank you
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,382
Messages
6,119,194
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top