ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formulas (https://www.excelbanter.com/excel-discussion-misc-queries/90178-formulas.html)

sdmccabe

Formulas
 
Could you suggest a formula to look at the value of one cell and, if the
value of that cell is 00/00/0000 (a cell formated as a date field), look at
the value of another cell and make a calculation?

I posted this previously, but was not specific about the 00/00/0000 cell value

Thanks.


JMB

Formulas
 
try

=IF(CELL("format",A1)="D4", Value If TRUE, Value If FALSE)

or if you're looking for any date format, I think you would use:

=IF(OR(CELL("format",A1)={"D1","D2","D3","D4","D5" }), Value If TRUE, Value
If FALSE)

check Excel help for the CELL function for more details.


"sdmccabe" wrote:

Could you suggest a formula to look at the value of one cell and, if the
value of that cell is 00/00/0000 (a cell formated as a date field), look at
the value of another cell and make a calculation?

I posted this previously, but was not specific about the 00/00/0000 cell value

Thanks.



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

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