Probably Simple

Simon2017

New Member
Joined
Mar 2, 2017
Messages
8
Hi

Could really do with some assistance on this one ...svp

Table below . . . to achieve 16000 in A3 I've calc'd as follows; =$B3*((D3*E3)+(F3*G3)+(H3*I3)+(J3*K3)+(L3*M3)) ... this works but is 'long-hand' and doesn't address the rate changes in columns B & C.

Does anyone know a way of using 'sumproduct' or similar to show me how to calculate this using a better formula?

atb
Simon.:)

ABCDEFGHIJKLMN
1wk1wk2wk3wk4wk5
2total costday ratewend rateQtyDaysQtyDaysQtyDaysQtyDaysQtyDays
31600010025085858585
4400010025025252525
52000100200252555
6
7
8

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Thanks for that, M . . . it works a treat but I don't fully understand how :confused: . . . something to do with Offset?

Can the formula be adapted to allow for applying the Wend rate [column C] for when the Days exceed 5? ...ie; 6(Saturday) and 7(Sunday)

S.
 
Upvote 0
Can the formula be adapted to allow for applying the Wend rate [column C] for when the Days exceed 5? ...ie; 6(Saturday) and 7(Sunday)

S.

Don't understand what you asking for. Could you show examples?
I have to leave now - i'll take a look later.

M.
 
Upvote 0
The numbers of 'Days' showing [in columns E,G,I,K,M] are typically equal to 5 ... Monday to Friday, these attract a Weekday Rate of £100 [col B]. If the numbers in cols E,G,I,K,M cells increase to 6, this means that Saturday is now to be included in the formula and, as a weekend rate, will attract the £250 . . . same for the scenario where cols E,G,I,K,M cells increase to 7, this means that Sunday is now to be included in the formula and, as a weekend rate also, will attract the £250 . . . Monday to Friday = upto 5 x £100, Monday to Saturday = 6 Days [5 x £100 and 1 x £250], Monday to Sunday = 7 Days [5 x £100 and 2 x £250]

Hope this is clearer, sorry for confusion.

S.
 
Upvote 0
Could you provide an example along with expected result where columns are greater than 5?

M.
 
Upvote 0
Sure ... apologies for basic example, I'm not permitted to attach ... yet :)

S.

ABCDEFGHIJKLMN
1WK1WK2WK3WK4WK5
2total costday rateweekend rateQtyDaysQtyDaysQtyDaysQtyDaysQtyDays
31600010025085858585
4167501002501685858585
5170001002501785858585
69000100250454647

<tbody>
</tbody>
 
Upvote 0
Maybe...

A3 copied down
=SUMPRODUCT(D3:L3,E3:M3,--(E$2:M$2="Days"))*B3+SUMPRODUCT(D3:L3,E3:M3-5,--(E$2:M$2="DAYS"),--(E3:M3>5))*(C3-B3)

M.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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