Find the month of the last non-zero value in a row

pliskers

Active Member
Joined
Sep 26, 2002
Messages
462
Office Version
  1. 2016
Platform
  1. Windows
I have a database with a header row containing month-year periods, and rows of data showing sales within each period. The dates move from earliest to latest as you go from left to right.

On each row, I need a formula to the right of column Z (assume the data fills columns A-Z) that will deliver the value in the date header row that corresponds to the last non-zero (>0) value within that row, between columns A and Z.

Any help will be much appreciated!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You're right, I was using the earlier formula. The one in #7 works fine. Thanks again.
 
Upvote 0
You're right, I was using the earlier formula. The one in #7 works fine. Thanks again.

It's a smilar set up...

2 has the same function as 9.99999999999999E+307... Division by 0 eliminates effectively 0's qua numbers. See links quoted earlier.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,912
Members
452,949
Latest member
beartooth91

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