find the next cell that houses a date

Tonyson

Board Regular
Joined
May 26, 2002
Messages
109
in workbook sheet1 cells A1 to G1 houses dates for each column. on sheet2 (same workbook) F3 I want to type any of the dates from sheet1 A1:G1, I need a formula in in cell G3 that will give me the date in the following cell that matches F1.
Say if sheet1 B1= MAY-2004 and C1= JUL-2004 and I type May-2004 on sheet2 F3 the formula on G3 will give me JUL=2004. :rolleyes:
 

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
Book2
ABCDEFG
1Jan-01Feb-01Mar-01Apr-01May-01Jun-01Jul-01
2
3
4FindFeb-01
5ReturnMar-01
Sheet1


formula is:

=INDEX(A1:G1,,MATCH(B4,A1:G1)+1)
 
Upvote 0
Thanks, that was what I was looking for, but I didn't put the double ,, before Match. I learn something new everyday.
:pray:
 
Upvote 0
Tonyson said:
Thanks, that was what I was looking for, but I didn't put the double ,, before Match. I learn something new everyday.
:pray:
Hi Tonyson:

No, it is not the ,, that would have caused you the problem -- it must have been something else. since Paddy's formulation will also work with a single comma instead of two commas, as illustrated in ...
Book3
ABCDEFG
101-Jan01-Feb01-Mar01-Apr01-May01-Jun01-Jul
2
3
4Find01-Feb
5Return01-Mar
Sheet6
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,205
Members
448,874
Latest member
Lancelots

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