Return week # from last input in a column

Turkish Delight

New Member
Joined
Apr 3, 2025
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have 2 columns for "Wk" [column A] and "cost" [Column B]. The cost column is all 0s[from formulas] until a number is inserted.
I would like a formula please under yellow cell F2 to spit out the week number where there is the latest value in cost column B that does not =0.

Eg below F6 formula would be Week 6 as the last value in column B is 41 [B7] as everything after it is 0:

1744377695824.png



In this example F2 formula would be Week 10 as the last value is 74 [cell B11] with all other cells after in this row are 0:
1744377783339.png


Would you know what formula I can put for F2 please?

Many thanks!
 
How about
Excel Formula:
=LOOKUP(2,1/(B2:B37<>0),A2:A37)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

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