Why D3 to D7 return #N/A? Pls. advise.

felixkk07

New Member
Joined
Apr 14, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
055 - (Status up to 15 Apr 2023) TCLM0xx Contractor's Dimbook Submission (Summary).xlsx
ABCD
2Works Order NumberDIM Book Submission DateMonthYear InfoLabel on X-axis
3TCLM011B0000042023-4-101 April 2023#N/A
4TCLM011B0000052023-4-1111 April 2023#N/A
5TCLM021B0000052023-3-3030 March 2023#N/A
6TCLM011B0000232023-4-1414 April 2023#N/A
7TCLM011B0000572023-4-1414 April 2023#N/A
Sourcedata_DB Overview_20230417
Cell Formulas
RangeFormula
C3:C7C3=TEXT(B3,"dd")& TEXT(B3," mmmm")& TEXT(B3," yyyy")
D3:D7D3=LOOKUP(C3,DATEVALUE(table!$A$2:$B$15),table!$C$2:$C$15)


055 - (Status up to 15 Apr 2023) TCLM0xx Contractor's Dimbook Submission (Summary).xlsx
ABC
1Start DateEnd DateLabel on X-axis
216/11/202215/12/2022Mid-Dec 2022
316/12/202215/1/2023Mid-Jan 2023
416/1/202315/2/2023Mid-Feb 2023
516/2/202315/3/2023Mid-Mar 2023
616/3/202315/4/2023Mid-Apr 2023
716/4/202315/5/2023Mid-May 2023
816/5/202315/6/2023Mid-Jun 2023
916/6/202315/7/2023Mid-Jul 2023
1016/7/202315/8/2023Mid-Aug 2023
1116/8/202315/9/2023Mid-Sep 2023
1216/9/202315/10/2023Mid-Oct 2023
1316/10/202315/11/2023Mid-Nov 2023
1416/11/202315/12/2023Mid-Dec 2023
1516/12/202315/1/2024Mid-Jan 2024
table
Cell Formulas
RangeFormula
A2A2=TEXT("16/11/2022","dd/mm/yyyy")
B2B2=TEXT("15/12/2022","dd/mm/yyyy")
A3A3=TEXT("16/12/2022","dd/mm/yyyy")
B3B3=TEXT("15/1/2023","dd/mm/yyyy")
A4A4=TEXT("16/1/2023","dd/mm/yyyy")
B4B4=TEXT("15/2/2023","dd/mm/yyyy")
A5A5=TEXT("16/2/2023","dd/mm/yyyy")
B5B5=TEXT("15/3/2023","dd/mm/yyyy")
A6A6=TEXT("16/3/2023","dd/mm/yyyy")
B6B6=TEXT("15/4/2023","dd/mm/yyyy")
A7A7=TEXT("16/4/2023","dd/mm/yyyy")
B7B7=TEXT("15/5/2023","dd/mm/yyyy")
A8A8=TEXT("16/5/2023","dd/mm/yyyy")
B8B8=TEXT("15/6/2023","dd/mm/yyyy")
A9A9=TEXT("16/6/2023","dd/mm/yyyy")
B9B9=TEXT("15/7/2023","dd/mm/yyyy")
A10A10=TEXT("16/7/2023","dd/mm/yyyy")
B10B10=TEXT("15/8/2023","dd/mm/yyyy")
A11A11=TEXT("16/8/2023","dd/mm/yyyy")
B11B11=TEXT("15/9/2023","dd/mm/yyyy")
A12A12=TEXT("16/9/2023","dd/mm/yyyy")
B12B12=TEXT("15/10/2023","dd/mm/yyyy")
A13A13=TEXT("16/10/2023","dd/mm/yyyy")
B13B13=TEXT("15/11/2023","dd/mm/yyyy")
A14A14=TEXT("16/11/2023","dd/mm/yyyy")
B14B14=TEXT("15/12/2023","dd/mm/yyyy")
A15A15=TEXT("16/12/2023","dd/mm/yyyy")
B15B15=TEXT("15/1/2024","dd/mm/yyyy")
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
The issue is in your LOOKUP C3 is text and your lookup range in table!$A$2:$B$15 you are changing to dates (numeric) so it can't find a match.
To use LOOKUP you need to change all your dates to actual dates.
 
Upvote 0
The Table edited to have real dates not text in Column A.
The Lookup uses Int because the dates seem to include time.



T202304a.xlsm
ABCD
1Works Order NumberDIM Book Submission DateMonthYear InfoLabel on X-axis
2TCLM011B00000401-Apr-2023Mid-Apr 2023
3TCLM011B00000511-Apr-2023Mid-Apr 2023
4TCLM021B00000530-Mar-2023Mid-Apr 2023
5TCLM011B00002314-Apr-2023Mid-Apr 2023
6TCLM011B00005714-Apr-2023Mid-Apr 2023
7
5b
Cell Formulas
RangeFormula
D2:D6D2=LOOKUP(INT(B2),Table!$A$2:$B$15)


T202304a.xlsm
AB
1Start DateLabel on X-axis
216-Nov-2022Mid-Dec 2022
316-Dec-2022Mid-Jan 2023
416-Jan-2023Mid-Feb 2023
516-Feb-2023Mid-Mar 2023
616-Mar-2023Mid-Apr 2023
716-Apr-2023Mid-May 2023
816-May-2023Mid-Jun 2023
916-Jun-2023Mid-Jul 2023
1016-Jul-2023Mid-Aug 2023
1116-Aug-2023Mid-Sep 2023
1216-Sep-2023Mid-Oct 2023
1316-Oct-2023Mid-Nov 2023
1416-Nov-2023Mid-Dec 2023
1516-Dec-2023Mid-Jan 2024
16
Table
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,512
Members
449,167
Latest member
jrob72684

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