Reference last number in a column and offset

Flexremmington

New Member
Joined
Oct 19, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi all- I'm sure this has been answered elsewhere, but I guess I just don't know how to correctly search it.

Column A is my input and J is my output. A1:A4 will always be the same. The employee number, in this case A5:A9 will be different with each time I use the sheet. "Total Monthly", currently A14, will always be 5 cells below the last employee number.

I need to put any amount of employees in and then have all employees represented in Col J and the total monthly cell listed directly under the last number.

Hope this makes sense, and thank you!
1690306741196.png
1690307150100.png
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You should be able to extend the same logic that Sufiyan97 gave your for all the other cells.
Exactly which cells in your example above are you trying to populate with a formula?
 
Upvote 0
You should be able to extend the same logic that Sufiyan97 gave your for all the other cells.
Exactly which cells in your example above are you trying to populate with a formula?
Cell M10 needs populated by E14, N10 by H14. But if I add five more employees to the list that will change the total monthly row to 19. E14 &H14 are sum formulas.
 
Upvote 0
So totals in cells E14 and H14 may move down rows, but the totals on the other side will ALWAYS be in cells M10 and N10?
Is that correct?
 
Upvote 0
So totals in cells E14 and H14 may move down rows, but the totals on the other side will ALWAYS be in cells M10 and N10?
Is that correct?

No, they are all relative. The "Total Monthly" cell will always be 5 cells lower than whatever the last employee number is.

Here's my full sheet without columns hidden.

1690313213442.png
 
Upvote 0
Try these formulas:

In cell M10:
Excel Formula:
=INDEX(E:E,MATCH("Total Monthly",A:A,0))

In cell N10:
Excel Formula:
=INDEX(H:H,MATCH("Total Monthly",A:A,0))
 
Upvote 0

Forum statistics

Threads
1,215,353
Messages
6,124,463
Members
449,163
Latest member
kshealy

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