Formula for total products reserved

MYMunshi

New Member
Joined
Apr 16, 2016
Messages
16
Hi everyone

I'm having some difficulty deriving a formula for this problem.

Basically, a shop owner runs a hardware store. Sadly, some items are out of stock, so he decides to create a 'reserves' list. Customers approach the owner and create reservations. However, as some customers reserve of only one item, some customers reserve more than one of the same item, as shown in the table below.


RESERVES
ABC
1CustomerProductQuantity
2BillKeyboard1
3JohnComputer1
4SonitaMouse2
5MikeComputer1
6GraceMouse2
7TomPhone1
8BobPhone1
9JebKeyboard2
10TimMouse3

<tbody>
</tbody>


Although a COUNTIF formula would be useful in this case to count the number of times a product has occurred, it wouldn't do the job in the sense of also counting the multiple times those products have been reserved.

So essentially, we're supposed to have another column that reads:


RESERVES
ABCD
1CustomerProductQuantityTotal Product Reserved
2BillKeyboard13
3JohnComputer12
4SonitaMouse27
5MikeComputer12
6GraceMouse27
7TomPhone12
8BobPhone12
9JebKeyboard23
10TimMouse37

<tbody>
</tbody>


Is there a formula please I could have help on for column D?

The reason I am doing this is because I also have a stock sheet (in a separate tab in the same sheet) with all other products on and I want to link reserves (in a separate tab) into that sheet. In the far right column of the Stock sheet, there will be a reserved column which adapts information from the Reserves column:


STOCK SHEET
ABCD
1ProductCurrent StockDue DateReserves
2Keyboard016-Sep-183
3Headset7
4Webcam9
5Mouse012-Mar-187
6Computer009-Feb-182
7Scanner11
8Printer6
9Phone014-Apr-182
10USB cable12
11Plug19

<tbody>
</tbody>

I think for this second problem, the formula may involve extracting the maximum number of reserved products, but could you please help me derive a formula for this second problem as well please.

Thank you, greatly appreciated :)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi,

For the first problem, try:

Code:
=SUMIF(B$2:B$10,B2,C$2:C$10)

In D2, copied down.

Matty
 
Last edited:
Upvote 0
Actually, the formula could be entered exclusively on your 'Stock Sheet' - no need to have it on your 'Reserves' sheet.

If reserves should only appear where current stock is 0, you could wrap the SUMIF within an IF to handle this.

Matty
 
Upvote 0
Actually, the formula could be entered exclusively on your 'Stock Sheet' - no need to have it on your 'Reserves' sheet.

If reserves should only appear where current stock is 0, you could wrap the SUMIF within an IF to handle this.

Matty


Hi Matty

Oh yeah! :LOL: Great idea, keep it all in the Stock Sheet.

That solved the problem Matty, thanks so much for your help, greatly appreciated mate :)
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,090
Latest member
fragment

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