web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use DatePicker to Look...
Power Apps
Unanswered

Use DatePicker to Lookup Data in Excel

(0) ShareShare
ReportReport
Posted on by 91

Hello, 

 

I'm trying to do something that I believe is quite easy, but I'm not having luck. I want to use the Date Picker to look up based on the date a column in excel. 

 

I'm getting "Incompatible types for comparison. These types can't be compared: DateTime, Control."

My current formula - LookUp(SortTimes_2,Column1=DatePicker1,'Bulk Truck')

 

zw2348_0-1701459001632.png

zw2348_1-1701459034363.png

 

 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    try this:

     

    LookUp(SortTimes_2, Column1 = DatePicker1.SelectedDate, 'Bulk Truck')

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • zw2348 Profile Picture
    91 on at

    Got closer.. but I think I'm at a stop until MS Fixes the bug.. I got this error.

     

    zw2348_0-1701461062914.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @zw2348,

    I think you have referred to a wrong column name...

    In your excel table, it is BulkTruck without any space, so, could you please try:

    LookUp(SortTimes_2,Column1=DatePicker1,BulkTruck)

     

    Or, please check this thread for details:

    Solved: Search data from excel by selecting date in a date... - Power Platform Community (microsoft.com)

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard