Ignore text in multiplication

vincenzo1

New Member
Joined
Sep 20, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
How do I get the formula to ignore the text in cell "D"?

DATEDescriptionQty DayDaily Rate.Price
=Timesheet!B9=Timesheet!F9=IF(Timesheet!E9="04:00","0.5","1")&" "& "Day"100=(--[@[Qty Day]])*(--[@[Daily Rate]])

I keep getting "#VALUE".

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the Forum!

One way you could do this:

Qty Day: =IF(Timesheet!E9="04:00",0.5,1)
Custom Format as 0.0" day"

Price: =[@[Qty Day]]*[@[Daily Rate]]
 
Upvote 0
Welcome to the Forum!

One way you could do this:

Qty Day: =IF(Timesheet!E9="04:00",0.5,1)
Custom Format as 0.0" day"

Price
: =[@[Qty Day]]*[@[Daily Rate]]
Welcome to the Forum!

One way you could do this:

Qty Day: =IF(Timesheet!E9="04:00",0.5,1)
Custom Format as 0.0" day"

Price
: =[@[Qty Day]]*[@[Daily Rate]]
Stephen,

Thanks for the prompt reply.


DATEDescriptionQty DayDaily Rate.Price
=Timesheet!B9=Timesheet!F9=IF(Timesheet!E9="04:00","0.5","1")&" "&"Day"100=[@[Qty Day]]*[@[Daily Rate]]

What I am trying to do is get this result

DATEDescriptionQty DayDaily Rate.Price
9/09/2024Job Description0.5 Day$ 100.00$50

As soon as I add the "Day" to column "C" it can't calculate?

Cheers
 
Upvote 0
As soon as I add the "Day" to column "C" it can't calculate?
No, because you can't do arithmetic with a text value.

I have suggested that you use the formula: IF(Timesheet!E9="04:00",0.5,1) and custom format the cell as 0.0" day". That means it will contain the value 0.5, but display as 0.5 day.

Alternatively, don't bother showing "day" at all - as your column header Qty Day makes clear that the column contains numbers of days.
 
Upvote 0
Stephen,

I tried to custom format as 0.00 "Day", but the "Day" doesn't show? It shows if I use =IF(Timesheet!E9="04:00","0.5","1")&" "&"Day" but then won't calculate?
 
Upvote 0
You want a number, not a text value, so you need to use: =IF(Timesheet!E9="04:00",0.5,1)

Not: =IF(Timesheet!E9="04:00","0.5","1")

(And by the way, does Timesheet!E9 contain the text value "04:00" or the time 04:00, a number?
 
Upvote 0
The "04:00" is derived from =IFERROR(TEXT(D9-C9,"hh:mm")," ") on the Timesheet tab. I input the times

DateStart Time (hh:mm)Finish Time (hh:mm)Total Hours (formula / electronic timesheet)Comments
9/09/202416:0020:0004:00Job description

DateStart Time (hh:mm)Finish Time (hh:mm)Total Hours (formula / electronic timesheet)Comments
455440.6666666666666670.833333333333333=IFERROR(TEXT(D9-C9,"hh:mm")," ")Job description
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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