A value used in the formula is of the wrong data type.

wynandbecker

New Member
Joined
Feb 23, 2021
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I'm multiplying four cells in a row, the first one is looked up and the other three are just numbers, but I receive wrong data type error.

COSTMASTERv7.0_NOV2022.xlsx
ACEGHIJKLMNOPRTVXYZAA
11CATEGORYHOURSSHIFTLINE
12
13N/TO/TD/TALLOWANCEALLOWANCETOTAL
14SELLINGSELLINGSELLINGPEOPLEDAYSHRS P/DPEOPLEDAYSHRS P/DPEOPLEDAYSHRS P/DSELLINGSELLINGSELLING%TOTALCOSTSELLING
15BOILERMAKERR495.00R780.00R1,040.00111111111#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!
16MILLWRIGHTR495.00R780.00R1,040.00R0,00R0,00R0,00R0,00R0,00R0,00
17SEMI-SKILLEDR235.00R352.50R470.00R0,00R0,00R0,00R0,00R0,00R0,00
18ELECTRICIANR495.00R780.00R1,040.00R0,00R0,00R0,00R0,00R0,00R0,00
LABOUR
Cell Formulas
RangeFormula
C15:C18C15=INDEX(LABOUR_PRICING!$D$4:$AV$30,MATCH(A15,LABOUR_PRICING!$B$4:$B$30,0),MATCH($A$1,LABOUR_PRICING!$D$2:$AV$2,0))
E15:E18E15=INDEX(LABOUR_PRICING!$D$35:$AV$61,MATCH(A15,LABOUR_PRICING!$B$4:$B$30,0),MATCH($A$1,LABOUR_PRICING!$D$2:$AV$2,0))
G15:G18G15=INDEX(LABOUR_PRICING!$D$66:$AV$92,MATCH(A15,LABOUR_PRICING!$B$4:$B$30,0),MATCH($A$1,LABOUR_PRICING!$D$2:$AV$2,0))
R15:R18R15=SUM(C15*H15*I15*J15)
T15:T18T15=SUM(E15*K15*L15*M15)
V15:V18V15=SUM(G15*N15*O15*P15)
Y15:Y18Y15=R15*(X15/100)
Z15:Z18Z15=SUM(Q15,S15,U15,W15)+(Y15/1.35)
AA15:AA18AA15=SUM(R15,T15,V15,Y15)
Cells with Data Validation
CellAllowCriteria
A15:A18List=LABOUR_PRICING!$B$4:$B$30
 

Attachments

  • 1668588217706.png
    1668588217706.png
    23.8 KB · Views: 12

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
It appears that the looked up value is text and therefore cannot be multiplied as a number.
Try this in cell R15
Excel Formula:
=SUBSTITUTE(C15,"R","")*H15*I15*J15
 
Upvote 0
It appears that the looked up value is text and therefore cannot be multiplied as a number.
Try this in cell R15
Excel Formula:
=SUBSTITUTE(C15,"R","")*H15*I15*J15
ty Peter_SSs - I tried your suggestion but still Wrong data type :(
 
Upvote 0
Glad you got it sorted. Thanks for letting us know what was happening. (y)
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,931
Members
449,274
Latest member
mrcsbenson

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