Finding start & end dates?

haw

Board Regular
Joined
Jan 18, 2005
Messages
113
C1 through Z1 contain dates: 9/1/05, 9/8/05, 9/15/05, etc.
C2 through Z10 contain numbers between 0 and 40 (or are empty)

I need a formula in B2 (that I can then copy down through B10) that will:
1) find the first cell containing a positive number in the range C2:Z2
2) return the value from the corresponding cell in row 1, above that cell.

If C1, D1, E1 = 9/1, 9/8, 9/15,
and C2, D2, E2 = 0, 10, 10
Then I need the result to be the value (date) 9/8.

I also need the same type of formula to find the date for the LAST cell containing a number.
 
Very interesting!

I understand now that I must press CNTL-SHIFT-ENTER while EDITING the formula ... as opposed to simply pressing those keys while the desired cell is selected (but is not in edit mode). So now those other functions work, also! This is excellent! Thanks for all your help ...

Now I'm gonna have to spend some time studying those formulas, to see WHY they work! I haven't previously had occasion to use INDEX, MATCH, or Arrays within formulas.

Thanks again for the help.
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

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