# ADDING PRICES ON THE SAME CELL BY MACRO

#### qwertyqweras

##### New Member
I HAVE DESIGNED A SPREADSHEET SO WHEN PEOPLE ORDER SOME FAST FOOD, THE WORKERS CAN USE THIS SPREADSHEET TO CHOOSE WHAT THE CUSTOMER WANTS FROM THE DROP DOWN LIST. HE CAN CHOOSE HOW MUCH OF THE FAST FOOD HE WANTS AND IT WILL TELL YOU THE COST. AT THE BOTTOM OF THE SHEET THE 'TOTAL COST' IS CALCULATED.

I WANT TO KNOW HOW TO GET THE TOTAL COST ONTO THE OTHER SHEET SO IT WILL CALCULATE HOW MUCH MONEY IS MADE ON THAT DAY. I HAVE A MACRO WHICH RESETS THE PRICES FOR THE NEW CUSTOMER. BUT AS THE MACRO IS USED I WANT THE PRICE OF THE CUSTOMER BUT WHEN A NEW CUSTOMER ORDERS I WANT THE COST OF THE FIRST CUSTOMER TO ADD UP TO THE SECOND CUSTOMER.

### 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.
Hi, welcome to the board. Would something like this do the trick?
Code:
``````Sub TransferData()
'transfer current values to Summary sheet
Sheets("Summary").Range("A65536").End(xlUp).Offset(1, 0).Value = Date
Sheets("Summary").Range("B65536").End(xlUp).Offset(1, 0).Value = Sheets("Purchases").Range("D29").Value
'clear other values here to reset for new customer
'... etc
End Sub``````
BTW... please don't use all caps in your posts -- it's not that easy to read, and it looks like shouting :wink:
Assumptions:
Your total for each transaction is in D29 of Purchases.
You are transferring summaries to Summary sheet; Col A is date and Col B is total.

Denis

Replies
1
Views
172
Replies
6
Views
256
Replies
1
Views
361
Replies
0
Views
298
Replies
1
Views
259

1,218,560
Messages
6,143,200
Members
450,469
Latest member
brent3162

### 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.

### Which adblocker are you using?

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

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