SUMIF calculates number of cells not value of cells

russkris

Board Regular
Joined
Nov 7, 2012
Messages
51
Hi,

I have a couple of tables like the picture below and a summary sheet so I can create some pretty graphs etc.
However the formula to separate the difference between Normal and Overtime counts are backwards and in number of cells not total time.


CfQB4I8pRfeC-0W0c4xaDg.jpg


ZYzXGJURRCaSb-sQc3LfRw.jpg


So the formula for the above is
Code:
=SUMIF(Table5[[#Headers],[#Data],[Rate]],"*"&Table36[[#Headers],[Normal]:[Overtime]]&"*",Table5[[#Headers],[#Data],[Hours Worked]])

The value should be 25:00 for Normal and 5:00 for Overtime

Anyone able to point of my mistake?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hell russkris,

Your formulas are OK but you need to change the formatting. Format result cells with custom format [h]:mm and you should see 25:00 rather than 01:00

hh:mm format shows "clock time" so you never get a value > 23:59, [h]:mm gives you "elapsed time"
 
Last edited:
Upvote 0
Not sure if I need a new thread.

Code:
=SUMIF(Table1[[#Headers],[#Data],[Rate]],"*"&Table1[[#Headers],[Normal]:[Overtime]]&"*",Table1[[#Headers],[Convert]])*[@[Hourly Rate]]

Trying to get excel to separate the Normal and Overtime and multiply it by the hourly rate. The above returns a VALUE error.
Normal Hourly rate will be x1 of the Hourly Rate
Overtime will be x2 of the hourly rate

Any tips? Would it be better to add sometime to the hourly rate column to say it it says Overtime, make it x2?
To confuse the issue, on the 1st of December there will be a rate increase.


OXaa9ORATHWIRzYXDKwpZA.jpg
 
Last edited:
Upvote 0
Semi sorted it
Overtime
=SUMIF(C4,"*"&Table1[[#Headers],[Normal]:[Overtime]]&"*",H4)*[@[Hourly Rate]]*2

Normal
=SUMIF(C4,"*"&Table1[[#Headers],[Normal]:[Overtime]]&"*",H4)*[@[Hourly Rate]]
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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