Excel formula, Lookup & return row1, column 12

JonesyUK

Board Regular
Joined
Oct 11, 2005
Messages
190
Office Version
  1. 365
Platform
  1. Windows
Hi - thanks for your help.

I have an Excel sheet which has data in columns C through O.
Column C is the column heading, colum D to N are the months (1 to 12) and column O is the "Total". Example:

............ColumnC...|.ColumnD.|.ColumnE.|.etc.
ROW5.....Location1|.Month1...|.Month2..|.etc..|TOTAL
ROW6..................|...200......|....300....|.etc..|500
ROW7.....Location2| Month1...|.Month2..|.etc..|TOTAL
ROW8..................|...100......|....300....| etc..|400


I would like to create summary as follows:
Location1 = 500
Location2 = 400
Location3, = x, etc.

I can't use vlookup because the location name is in the same row as the column headings, and I am not allowed to make any changes to the original file.

I can use index and offset for the first location, but ideally I need the formula to find "Location1", return the TOTAL which is 1 row BELOW the column heading ("TOTAL") and then to move on to Location2, etc.

Hope this makes sense...

Thanks,
Clint
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi - thanks for your help.

I have an Excel sheet which has data in columns C through O.
Column C is the column heading, colum D to N are the months (1 to 12) and column O is the "Total". Example:

............ColumnC...|.ColumnD.|.ColumnE.|.etc.
ROW5.....Location1|.Month1...|.Month2..|.etc..|TOTAL
ROW6..................|...200......|....300....|.etc..|500
ROW7.....Location2| Month1...|.Month2..|.etc..|TOTAL
ROW8..................|...100......|....300....| etc..|400


I would like to create summary as follows:
Location1 = 500
Location2 = 400
Location3, = x, etc.

I can't use vlookup because the location name is in the same row as the column headings, and I am not allowed to make any changes to the original file.

I can use index and offset for the first location, but ideally I need the formula to find "Location1", return the TOTAL which is 1 row BELOW the column heading ("TOTAL") and then to move on to Location2, etc.

Hope this makes sense...

Thanks,
Clint
Try this...

A2 = some location

=SUM(INDEX(D5:N15,MATCH(A2,C5:C15,0)+1,0))
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

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