Display Column Header When Specific Cell is Exceeded

nathanthomson11

New Member
Joined
Apr 4, 2019
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I am hoping someone can help me with a formula that will essentially display in column A, which calendar week when a specific line exceeds the number in column B. For example, in row 3, the capacity is "800" - beginning in C3 and moving across to the right, at which point does it exceed "800"... in this case it's in J3 so I want it to display cw27 (Column header) in A3.

Book1
ABCDEFGHIJKL
2RunoutCapacitycw20cw21cw22cw23cw24cw25cw26cw27cw28cw29
3cw278001005020017520020307590100
4cw2740040407580303525909040
5cw221505050100408090101090100
6cw2120015015020040020050607080100
Sheet1
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
@nathanthomson11 It took me a few reads of your question to understand what your goal is. I think if I give some clarification, it might help you get more responses from the other members.

You want to sum the values in each row, starting from the 'C' column until the sum is greater than the value from the 'B" column in that row, at that point you want to take the column header from row 2 in the column that made the sum of that row greater than the value from the 'B' column in that row, then copy that column header to the "A" column for that row.

That sound correct?
 
Upvote 0
Yes, that is exactly what I'm looking for!

Apologies, I was having difficulties explaining it.
 
Upvote 0
I suspect there's a dynamic array solution, but I haven't come up with it (yet). How about this alternative:

Book9
ABCDEFGHIJKL
2RunoutCapacitycw20cw21cw22cw23cw24cw25cw26cw27cw28cw29
3cw278001005020017520020307590100
4cw2740040407580303525909040
5cw221505050100408090101090100
6cw2120015015020040020050607080100
Sheet2
Cell Formulas
RangeFormula
A3:A6A3=INDEX($B$2:$L$2,1+MATCH(TRUE,SUBTOTAL(9,OFFSET($C3,0,0,1,COLUMN($C3:$L3)-COLUMN($C3)+1))>=B3,0))
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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