How to Lookup Dates In Excel

val2024

New Member
Joined
Jun 27, 2024
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Need help! I am trying to have the cells pre-populated based on date. I have changed the lookup date format to general and I am still getting an error.
 

Attachments

  • Screenshot 2024-06-27 at 10.29.31 AM.png
    Screenshot 2024-06-27 at 10.29.31 AM.png
    50.3 KB · Views: 9

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the Board!

It is important to understand how Excel stores dates. It actually stores them as numbers, specifically the number of days since 1/0/1900.
That is why if you change a valid date to a General or Number format, you will see a number like: 45292
That is how Excel sees and stores the dates. So all dates really are in Excel are numbers with special date formatting.
Time is the fractional component of one day (i.e. 6:00 AM is 0.25).

Note that you may get missing results if you try to compare a valid date to a date entered as text, or if you are comparing a date with a time component to a date that does not have a time component. And changing the formatting to hide the time component does not get rid of it. It only hides it from view, but does not change the underlying value used in calculations.

In order to help you further, you would need to show us the formulas you are trying to use.
 
Upvote 0
Welcome to the Board!

It is important to understand how Excel stores dates. It actually stores them as numbers, specifically the number of days since 1/0/1900.
That is why if you change a valid date to a General or Number format, you will see a number like: 45292
That is how Excel sees and stores the dates. So all dates really are in Excel are numbers with special date formatting.
Time is the fractional component of one day (i.e. 6:00 AM is 0.25).

Note that you may get missing results if you try to compare a valid date to a date entered as text, or if you are comparing a date with a time component to a date that does not have a time component. And changing the formatting to hide the time component does not get rid of it. It only hides it from view, but does not change the underlying value used in calculations.

In order to help you further, you would need to show us the formulas you are trying to use.
thank you for your help!
 

Attachments

  • Screenshot 2024-06-27 at 10.57.48 AM.png
    Screenshot 2024-06-27 at 10.57.48 AM.png
    8.1 KB · Views: 10
Upvote 0
When posting formulas, please just copy and paste them here. Posting images of formulas is not that helpful, as we cannot see it unless we click on the image, which then hides everything else. Also, we cannot copy/paste the formula from an image, if we wanted to copy it over to our side. You can use the XLS code tags around your formulas, if you want to make it look nice, but it is not necessary.

The problem with the image in your first post is that you are not showing us any row or column headers. So we cannot see what cells you formulas are referencing.

Note that MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

If you cannot use that tool, at least use an image of your data that show the row and column headers so we can align your formula to that.
 
Upvote 0
When posting formulas, please just copy and paste them here. Posting images of formulas is not that helpful, as we cannot see it unless we click on the image, which then hides everything else. Also, we cannot copy/paste the formula from an image, if we wanted to copy it over to our side. You can use the XLS code tags around your formulas, if you want to make it look nice, but it is not necessary.

The problem with the image in your first post is that you are not showing us any row or column headers. So we cannot see what cells you formulas are referencing.

Note that MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

If you cannot use that tool, at least use an image of your data that show the row and column headers so we can align your formula to that.
thank you so much!!
 

Attachments

  • Screenshot 2024-06-27 at 11.41.46 AM.png
    Screenshot 2024-06-27 at 11.41.46 AM.png
    72.5 KB · Views: 8
Upvote 0
Your formula does not look right to me.
As matter as fact, I cannot even decipher it to tell what you are attempting to do.
Can you explain exactly what you are trying to do with this formula?
Use your data as an example and explain your desired result and why.
 
Upvote 0
Your formula does not look right to me.
As matter as fact, I cannot even decipher it to tell what you are attempting to do.
Can you explain exactly what you are trying to do with this formula?
Use your data as an example and explain your desired result and why.
I am trying to pre-populate a monthly payment amount based on in service date and what the amortization period and total cost ((total cost/amortization period x 12)) is for that item.. For example, If the "Inservice Date" in H5 shows Jan 1, 2024, then I want the payment amount ((total cost/amortization period x 12))) to begin in the corresponding cell, L5.
 
Upvote 0
Does this get you close:

20240630 Amortisation val2024.xlsx
FGHIJKLMNOPQ
4AmountPeriodIn Service DateLookupEnd DateLookup1/01/20241/02/20241/03/20241/04/20241/05/20241/06/2024
56000051/01/20241/01/2029100010001000100010001000
Sheet1
Cell Formulas
RangeFormula
F5F5=1000*5*12
L5:Q5L5=IF(AND(L$4>=$H5,EOMONTH(L$4,-1)+1<=$J5),$F5/$G5/12,0)
 
Upvote 0

Forum statistics

Threads
1,218,153
Messages
6,140,793
Members
450,314
Latest member
AndrewYang

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