Index/Match question?

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,055
Office Version
  1. 365
Platform
  1. Windows
With the following example;

APRIL 500
MAY 550
JUNE 700
JULY 800


The above months are text rather than a date entry.

In cell E1 I would enter a text month name.

I need a formula that sums the data above for all rows starting April, up to the row matching the entry in cell E1.

Eg E1 contains "JUNE" sum would be 1750

I'm thinking some kind of Index/Match but cant figure it out!

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try


A
B
C
D
E
F
1
Months​
Value​
June​
1750​
2
APRIL​
500​
3
MAY​
550​
4
JUNE​
700​
5
JULY​
800​
6

Formula in F1
=SUM(B2:INDEX(B2:B5,MATCH(E1,A2:A7,0)))

M.
 
Upvote 0
How about:

ABCDE
1MonthJUNE
21750
3APRIL500
4MAY550
5JUNE700
6JULY800
7AUGUST860
8

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet13

Worksheet Formulas
CellFormula
E2=SUM(INDEX(B2:B10,MATCH("APRIL",A2:A10,0)):INDEX(B2:B10,MATCH(E1,A2:A10,0)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
=SUMPRODUCT(--(TEXT("01/"&A1:A4,"dd-mm-yy")+0<=F1)*(B1:B4))

where column A has months and figures in column B
 
Upvote 0
Try


A
B
C
D
E
F
1
Months​
Value​
June​
1750​
2
APRIL​
500​
3
MAY​
550​
4
JUNE​
700​
5
JULY​
800​
6

Formula in F1
=SUM(B2:INDEX(B2:B5,MATCH(E1,A2:A7,0)))

M.

Perfect, thanks

Thanks to the other posters too :)
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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