1st match column header, 2nd lookup a value in same column, 3rd return corresponding value from the very first column ?? need help

skyh3ck

New Member
Joined
Aug 14, 2015
Messages
2
Hello guys

i have a data base where i want to first find the column header, 2nd in same column find a certain date, and 3rd return correponding date from same row 1st column.

So i have prepared one sample excel file

Sheet one - Calc - where user can enter the class and dates
Sheet two - Log - this log is where the data feeded each month regularly this is the file from where i have to retrieve the date

This is sheet one - where user will update the class and date of file, i want result from another sheet log where i have data feeded

calc.xlsx
ABCD
1
2ClassE15
3Date of Birth01-Jan-2000
4Date of File 01 Jan 2005
5Date of Approval01-Feb-2007
6Date of Current5
7
8
9
10
Calc
Cell Formulas
RangeFormula
C2C2=MATCH(B2, Log!B1:L1,0)
B6B6=MATCH(B2, Log!B1:L1,0)



This is the second sheet or tab where data is feeded - so whatever class is selected, the formula should first go in that column and check when the date of file crossed, and give me the date of current for that particular date of file. However one catch - some time in some case, date of file can go back, as marked in red, in that case any previous available date gets ignore, unless new date of file is not crossed in same column.

calc.xlsx
ABCDEFGHIJKLMN
1Date of CurrentA1B1C1D1E1F1G1H1exResOther1Other2
201-Jan-202005-Feb-199905-Feb-199905-Feb-199901-Jan-199905-Feb-199905-Feb-199905-Feb-199905-Feb-199905-Feb-1999
301-Feb-202008-Aug-199908-Aug-199908-Aug-199908-Aug-199908-Aug-199908-Aug-199908-Aug-199908-Aug-199908-Aug-1999C = Continue previous date
401-Mar-202001-Dec-199901-Dec-199901-Dec-199901-Dec-199901-Dec-199901-Dec-199901-Dec-199901-Dec-199901-Dec-1999U = Unqualified
501-Apr-202005-Jan-200005-Jan-200005-Jan-200005-Jan-200005-Jan-200005-Jan-200005-Jan-200005-Jan-200005-Jan-2000RED = retrogessed or went to previous available date
601-May-202006-Mar-200001-Jan-199906-Mar-200006-Mar-200006-Mar-200006-Mar-200006-Mar-200006-Mar-200006-Mar-2000
701-Jun-202015-May-200115-May-200115-May-200115-May-200115-May-200115-May-200115-May-200115-May-200115-May-2001
801-Jul-202020-May-200120-May-200120-May-200120-May-200120-May-200120-May-200120-May-200120-May-200120-May-2001
901-Aug-202002-Oct-200302-Oct-200302-Oct-200302-Oct-200302-Oct-200302-Oct-200302-Oct-200302-Oct-200302-Oct-2003
1001-Sep-202011-Nov-200308-Jan-200211-Nov-200311-Nov-200310-Oct-200311-Nov-200311-Nov-200311-Nov-200311-Nov-2003
1101-Oct-202005-Dec-200305-Dec-200305-Dec-200305-Dec-200305-Dec-200305-Dec-200305-Dec-200305-Dec-200305-Dec-2003
1201-Nov-202008-Feb-200508-Feb-200408-Feb-200408-Feb-200408-Feb-200408-Feb-200408-Feb-200408-Feb-200408-Feb-2004
1301-Dec-202016-Mar-200516-Mar-200516-Mar-200516-Mar-200516-Mar-200516-Mar-200516-Mar-200516-Mar-200516-Mar-2005
1401-Jan-202101-Jan-200101-Jan-200101-Jan-200101-Jan-200101-Jan-200101-Jan-200101-Jan-200101-Jan-200101-Jan-2001
1501-Feb-202120-May-200520-May-200520-May-200520-May-200520-May-200520-May-200520-May-200520-May-200520-May-2005
1601-Mar-202118-Jun-200518-Jun-200518-Jun-200518-Jun-200518-Jun-200518-Jun-200518-Jun-200518-Jun-200518-Jun-2005
1701-Apr-202120-Sep-200520-Sep-200520-Sep-200520-Sep-200520-Sep-200520-Sep-200520-Sep-200520-Sep-200520-Sep-2005
1801-May-202101-Oct-200518-Nov-200501-Oct-200501-Oct-200501-Oct-200501-Oct-200501-Oct-200501-Oct-200501-Oct-2005
1901-Jun-202101-Dec-200501-Dec-200501-Dec-200501-Dec-200501-Dec-200501-Dec-200501-Dec-200501-Dec-200501-Dec-2005
2001-Jul-202101-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006
2101-Aug-202101-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2201-Sep-202101-Jan-200601-Jan-200501-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2301-Oct-202101-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2401-Nov-202101-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2501-Dec-202101-Jan-200605-Mar-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2601-Jan-202201-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2701-Feb-202201-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2801-Mar-202201-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
2901-Apr-202201-Jan-200608-Aug-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
3001-May-202201-Jan-200601-Jan-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
3101-Jun-202201-Jan-200601-Dec-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
3201-Jul-202201-Jan-200631-Dec-200601-Jan-200601-Jan-200601-Jan-2006C01-Jan-200601-Jan-200601-Jan-2006
3301-Aug-202210-Feb-200710-Feb-200710-Feb-200710-Feb-200710-Feb-200710-Feb-200710-Feb-200710-Feb-200710-Feb-200705-Feb-07
3401-Sep-202210-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
3501-Oct-202210-Feb-200710-Feb-2007CC10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
3601-Nov-202210-Feb-200715-Feb-2007CC10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
3701-Dec-202210-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
3801-Jan-202310-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
3901-Feb-202310-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
4001-Mar-202310-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-200703-Mar-08
4101-Apr-202310-Feb-200710-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007C10-Feb-200710-Feb-2007
4201-May-202301-Jan-200501-Jan-200501-Jan-200501-Jan-200501-Jan-200501-Jan-200501-Jan-200501-Jan-200501-Jan-2005
4301-Jun-202301-Feb-200501-Feb-200501-Feb-200501-Feb-200501-Feb-200501-Feb-200501-Feb-200501-Feb-200501-Feb-2005
4401-Jul-202315-Mar-200715-Mar-200715-Mar-200715-Mar-200715-Mar-200715-Mar-200715-Mar-200715-Mar-200715-Mar-2007
4501-Aug-202308-Aug-200708-Aug-200708-Aug-200708-Aug-200718-Aug-200808-Aug-200708-Aug-200708-Aug-200708-Aug-2007
4601-Sep-202315-Sep-200715-Sep-200715-Sep-200715-Sep-200715-Sep-200715-Sep-200715-Sep-200715-Sep-200715-Sep-2007
4701-Oct-202301-Dec-200701-Dec-200701-Dec-200701-Dec-200701-Dec-200701-Dec-200701-Dec-2007U01-Dec-2007
4801-Nov-202305-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-2008
4901-Dec-202305-Jan-201006-Feb-201105-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-200805-Jan-2008
5001-Jan-202405-Feb-201502-Feb-201001-Feb-200705-Jan-2008U01-Jan-2016U05-Jan-200805-Aug-201101-Jan-23
5101-Feb-2024
5201-Mar-2024
5301-Apr-2024
5401-May-2024
5501-Jun-2024
5601-Jul-2024
5701-Aug-2024
5801-Sep-2024
5901-Oct-2024
6001-Nov-2024
6101-Dec-2024
6201-Jan-2025
6301-Feb-2025
6401-Mar-2025
6501-Apr-2025
6601-May-2025
6701-Jun-2025
6801-Jul-2025
6901-Aug-2025
7001-Sep-2025
7101-Oct-2025
7201-Nov-2025
7301-Dec-2025
7401-Jan-2026
7501-Feb-2026
7601-Mar-2026
7701-Apr-2026
7801-May-2026
7901-Jun-2026
8001-Jul-2026
8101-Aug-2026
8201-Sep-2026
8301-Oct-2026
8401-Nov-2026
8501-Dec-2026
8601-Jan-2027
8701-Feb-2027
8801-Mar-2027
8901-Apr-2027
9001-May-2027
9101-Jun-2027
9201-Jul-2027
9301-Aug-2027
9401-Sep-2027
9501-Oct-2027
9601-Nov-2027
9701-Dec-2027
9801-Jan-2028
9901-Feb-2028
10001-Mar-2028
10101-Apr-2028
10201-May-2028
10301-Jun-2028
10401-Jul-2028
10501-Aug-2028
10601-Sep-2028
10701-Oct-2028
10801-Nov-2028
10901-Dec-2028
11001-Jan-2029
11101-Feb-2029
11201-Mar-2029
11301-Apr-2029
11401-May-2029
11501-Jun-2029
11601-Jul-2029
11701-Aug-2029
11801-Sep-2029
11901-Oct-2029
12001-Nov-2029
12101-Dec-2029
12201-Jan-2030
12301-Feb-2030
12401-Mar-2030
12501-Apr-2030
12601-May-2030
12701-Jun-2030
12801-Jul-2030
12901-Aug-2030
13001-Sep-2030
13101-Oct-2030
13201-Nov-2030
13301-Dec-2030
Log
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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