XL formula query

Copper Contributor

I need to calculate the following - appreciate anyones help...!!

 

BenBen1125_0-1669990255019.png

 

4 Replies

@BenBen1125 

Try this:

=IF(LEFT(CELL("format";B1))="D";A1*0.25;0)

 

Hope this is the correct translation, I only have got the german version.

Worti

 

@Der_Worti thanks for your help but it didn’t work. Tried changing the apostrophe for a comma but that didn’t work either….

@BenBen1125 

CELL("format") returns "G" for default date format CELL function - Microsoft Support

If in column B could be date or nothing, easier way is to check if it is empty or not.

image.png

 

I am interested in providing a reply to this question. Let me do some researches to provide answers to your questions