Sum to a certain cell

routeski

New Member
Joined
Jan 20, 2005
Messages
17
Hello,

I have built a very basic sheet to monitor sales at an event we are running, almost a bit like a till system. We are scanning barcodes which will represent products and then a final barcode to "end the transaction" which can also count the number of transactions. What I'm trying to achieve is everytime the 'end transaction' barcode is scanned, that the sum of total of everything up to the last end transaction is done.

For example

1345 | APPLES | $4
5566 | ORANGES | $3
3452 | BANANAS | $6
9999 | ENDTRANS | $0
3452 | BANANAS | $6
5566 | ORANGES | $3
9999 | ENDTRANS | $0

In this example, another cell will have $9 as the answer.

Hope this makes sense. Any help greatly received!

Mike
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Yes it is. It might change, but I guess I could figure that part out

Control+shift+enter, not just enter:

=SUM(INDEX($C$1:$C$7,MATCH(9.99999999999999E+307,1/($A$1:$A$7=9999))):INDEX($C$1:$C$7,MAX(IF($A$1:$A$8=9999,IF(ROW($A$1:$A$7)-ROW($A$1)+1 < MATCH(9.99999999999999E+307,1/($A$1:$A$7=9999)),ROW($A$1:$A$7)-ROW($A$1)+1)))))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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