# find the next cell that houses a date

#### Tonyson

##### Board Regular
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.

### Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

##### MrExcel MVP
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)

#### Tonyson

##### Board Regular
Thanks, that was what I was looking for, but I didn't put the double ,, before Match. I learn something new everyday.
ray:

#### Yogi Anand

##### MrExcel MVP
Tonyson said:
Thanks, that was what I was looking for, but I didn't put the double ,, before Match. I learn something new everyday.
ray:
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

#### Tonyson

##### Board Regular
Thanks Yogi ! I'll keep that in mind you guys are great.

Replies
0
Views
127
Replies
2
Views
292
Replies
3
Views
141
Replies
3
Views
692
Replies
10
Views
472

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,164
Messages
5,768,564
Members
425,482
Latest member
blazingdiva1

### 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.

### Which adblocker are you using?

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

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