vlookup- sumif

bonovox1

Board Regular
Joined
Aug 11, 2007
Messages
91
hi, i have 2 columns in cols A and B ( a date column and an amount Column.) I want to enter a value in cell C1, say 5000, and my formula will return the date where this value is attained. i.e on below example 31/07/2015. Appreciate if somebody could help me on this.

31/10/2014 500
30/01/2015 1000
30/04/2015 1000
20/07/2015 1000
21/07/2015 1000
31/07/2015 1000
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

davesweep

Well-known Member
Joined
Apr 30, 2007
Messages
510
Hello,

in E1, and copied down:=SUM($B$1:B1)

=INDEX(A1:A6,MATCH(C1,E1:E6))
 

BobUmlas

Well-known Member
Joined
Mar 14, 2002
Messages
1,181
You'll need a helper column (or VBA). In D1, enter =SUM($B$1:B1) and fill down. Then in E1:
=INDEX(A:A,IF(ISNA(MATCH(C1,D:D,0)),MATCH(C1,D1:D100,1)+1,MATCH(C1,D1:D100,0)))
 

BobUmlas

Well-known Member
Joined
Mar 14, 2002
Messages
1,181
Doesn't work. Try numbers like:
100
200
1000
2000
1000
2000
and put 4301 in C1.



<colgroup><col style="width: 48pt;" width="64">
<tbody>


</tbody>
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,595
Messages
5,832,634
Members
430,149
Latest member
amitk1

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
Top