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

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.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
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
Joined
May 26, 2002
Messages
109
Thanks, that was what I was looking for, but I didn't put the double ,, before Match. I learn something new everyday.
:pray:
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
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
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top