Formatting date issue

EWRUCK

New Member
Joined
Nov 28, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi, I think my issue is just a date formatting issue but please correct me if you see something else. I have data going into a pivot table on one tab and then that data is being pulled into another tab via a Xlookup. My formula is using the date to match the two references between the two sheets. They are formatted the same. DD/MM/YYYY but I am pulling an #N/A. I did make sure there is data to pull on the date.


=XLOOKUP([@Date],'Deal List Ad Source Pivot 24'!F2,'Deal List Ad Source Pivot 24'!$F$3:$F$332,,0)

I have both tabs I'm pulling data from attached. Any ideas on what I'm missing here to would be helpful. I feel like I'm so close but I'm looming on a deadline.

Thanks.
 

Attachments

  • Screenshot 2024-12-22 093721.jpg
    Screenshot 2024-12-22 093721.jpg
    27.4 KB · Views: 12
  • Screenshot 2024-12-22 093743.jpg
    Screenshot 2024-12-22 093743.jpg
    17.4 KB · Views: 12

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi, I think my issue is just a date formatting issue but please correct me if you see something else. I have data going into a pivot table on one tab and then that data is being pulled into another tab via a Xlookup. My formula is using the date to match the two references between the two sheets. They are formatted the same. DD/MM/YYYY but I am pulling an #N/A. I did make sure there is data to pull on the date.


=XLOOKUP([@Date],'Deal List Ad Source Pivot 24'!F2,'Deal List Ad Source Pivot 24'!$F$3:$F$332,,0)

I have both tabs I'm pulling data from attached. Any ideas on what I'm missing here to would be helpful. I feel like I'm so close but I'm looming on a deadline.

Thanks.
Wanted to add this since this is where I think it's the date formatting throwing off my formula. The lookup value is showing a digit and not a date yet both tabs show the date field as a date.
 

Attachments

  • Screenshot 2024-12-22 095011.jpg
    Screenshot 2024-12-22 095011.jpg
    35.8 KB · Views: 14
Upvote 0
The length of the lookup array should be the same length as the return array. Try:
Rich (BB code):
=XLOOKUP([@Date],--'Deal List Ad Source Pivot 24'!$B$3:$B$332,'Deal List Ad Source Pivot 24'!$F$3:$F$332,,0)
 
Last edited:
Upvote 1
Hi, I think my issue is just a date formatting issue but please correct me if you see something else. I have data going into a pivot table on one tab and then that data is being pulled into another tab via a Xlookup. My formula is using the date to match the two references between the two sheets. They are formatted the same. DD/MM/YYYY but I am pulling an #N/A. I did make sure there is data to pull on the date.


=XLOOKUP([@Date],'Deal List Ad Source Pivot 24'!F2,'Deal List Ad Source Pivot 24'!$F$3:$F$332,,0)

I have both tabs I'm pulling data from attached. Any ideas on what I'm missing here to would be helpful. I feel like I'm so close but I'm looming on a deadline.

Thanks.
Hi EWRUCK,
I noticed you gave @Cubist a thumbs up for his recommended solution. If it resolved your reported issue, could you mark his post as the Solution?
Thanks, and welcome to the forum. (y)
 
Upvote 0

Forum statistics

Threads
1,226,061
Messages
6,188,640
Members
453,487
Latest member
LZ_Code

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