Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2018, 10:02 AM
DaveWSinger DaveWSinger is offline Assistance with Today() function returning correct value Windows 7 64bit Assistance with Today() function returning correct value Office 2010 64bit
Novice
Assistance with Today() function returning correct value
 
Join Date: Mar 2018
Posts: 3
DaveWSinger is on a distinguished road
Default Assistance with Today() function returning correct value

Hi.
I have a formula in a cell =IF(O2>0,"COMPLETE",(TODAY()-K2+1)*H2)
As you can see in attachment 1.pdf If I put a money value in H2 it returns a value in L2 as 431,670.00
If I put the date as per 2.pdf the formula works perfect.



I am relatively new to formulas but I do know that it seems to be calculating from 1900 date.
Can anyone suggest a change to the formula that can show the correct value without having a date entered?
Attached Files
File Type: pdf 1.pdf (10.1 KB, 10 views)
File Type: pdf 2.pdf (10.2 KB, 8 views)
Reply With Quote
  #2  
Old 03-07-2018, 02:32 PM
NBVC's Avatar
NBVC NBVC is offline Assistance with Today() function returning correct value Windows 10 Assistance with Today() function returning correct value Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Excel uses a 5 digit number to represent dates so that it can do calculations...

today's date, for instance is represented as 43166. (to see this enter today's date in a cell, then format it as General).

Now 43166-0 = 43166 and 43166+1 = 43167 which when multiplied by 10 gives 431670..... so there should be a date of some kind in column K.
Reply With Quote
  #3  
Old 03-08-2018, 01:10 AM
DaveWSinger DaveWSinger is offline Assistance with Today() function returning correct value Windows 7 64bit Assistance with Today() function returning correct value Office 2010 64bit
Novice
Assistance with Today() function returning correct value
 
Join Date: Mar 2018
Posts: 3
DaveWSinger is on a distinguished road
Default Assistance with Today() function returning correct value

Hi MBVC, thanks for getting back to me.
That was the conclusion, problem is, when we do a rental but do not have a start date but we still need to do the calculation financially. Wondered if another expression in the formula could allow this dual result to happen. IE, no date financial figure applied in Column K, a cost of 10.00 in total daily cost will appear in L.
Reply With Quote
  #4  
Old 03-08-2018, 02:07 AM
ArviLaanemets ArviLaanemets is offline Assistance with Today() function returning correct value Windows 8 Assistance with Today() function returning correct value Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Code:
=if(k2="","",if(o2>0,"complete",(today()-k2+1)*h2))
or
Code:
=if(SUM(k2)=0,0,if(o2>0,"complete",(today()-k2+1)*h2))
Reply With Quote
  #5  
Old 03-08-2018, 05:34 AM
DaveWSinger DaveWSinger is offline Assistance with Today() function returning correct value Windows 7 64bit Assistance with Today() function returning correct value Office 2010 64bit
Novice
Assistance with Today() function returning correct value
 
Join Date: Mar 2018
Posts: 3
DaveWSinger is on a distinguished road
Default

Hi.
Worked a treat thanks very much, appreciated.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Assistance with Today() function returning correct value COUNTIFS function is only returning partial results rgauss Excel 2 01-25-2017 01:26 PM
Sum Function over Today +/- 60 Days gabeha Excel 2 09-12-2014 01:13 AM
Assistance with Today() function returning correct value Form field calculation returning 2x correct result Jschueller Word 1 08-20-2013 01:51 PM
How do I auto-update the TODAY excel function within PowerPoint show presentation? Powerpoint100 PowerPoint 0 02-12-2013 01:45 PM
Assistance with Today() function returning correct value Today's Date Function freschij Excel 3 02-11-2011 10:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft