ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to use date for calculating values in other cells (https://www.excelbanter.com/excel-worksheet-functions/206809-how-use-date-calculating-values-other-cells.html)

bamboozled

How to use date for calculating values in other cells
 
I want to include the date in the "If" statement for calculating values in
other cells.
Example: If the start date is after 1/1/1999, then A-B.

dan dungan

How to use date for calculating values in other cells
 
On Oct 17, 10:03*am, Bamboozled
wrote:
I want to include the date in the "If" statement for calculating values in
other cells.
Example: *If the start date is after 1/1/1999, then A-B. *


If the start date is in c1, would this work?

=if(c11/1/1999,a1-b1,"")

Spiky

How to use date for calculating values in other cells
 
On Oct 17, 12:03*pm, Bamboozled
wrote:
I want to include the date in the "If" statement for calculating values in
other cells.
Example: *If the start date is after 1/1/1999, then A-B. *


A date in Excel is just a number formatted to look like a date. So if
you know the number, you can use greater than or less than just like
any other number. 1/1/1999 is actually 36161. Or you can put your
control date in another cell (B1 below) and just reference it.
Something like:
=IF(A136161,A2-B2)
=IF(A1B1,A2-B2)


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com