gahooja

New Member
Joined
Mar 26, 2010
Messages
14
I need help coming up with a formula which will pick up a date from a heading row if the rows below has a zero.

For example I have a spreadsheet with dates as the main heading and below i have names of resources with forecasted hours.

1/1 1/2 1/3 1/4 1/5 1/6 1/7
john doe 8 8 8 8 8 0 0
Jane doe 6 8 8 8 0 0 0
Mary 8 0 0 0 0 0 0
Mark 0 0 0 0 0 0 0

I need a formula which will pick up the date when i have zero showing as the hours for a certain individual. So for John i would need to show 1/6, Jane1/5, Mary 1/2, and Mark 1/1. I have this data for the whole year so don't want to search each individual manually but need a date when their hours go to zero basically.

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
gahooja,

Using your example and assuming the names are in column A rows 2 through 5 and the dates are in row 1 columns B through H:
=INDEX($B$1:$H$1,,MATCH(TRUE,INDEX(B2:H2=0,),0))
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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