Formula or Macro

data808

Active Member
Joined
Dec 3, 2010
Messages
358
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I have this spreadsheet that I use for cashiering and it has columns for taking money. The columns are in this order:

Amount Due
Check
Charge
Cash Given
Change

I would like these columns to add everything up so the Change column tells me how much to give back to the customer. The thing is, when the customer writes a check or charges, I want the Change column to say 0 because when the customer pays by check or charge, there is never change to give back. Oh and in the Check and Charge column, I place an "x" in it when it is used. So when the "x" is placed in that column that's when I want the Change column to input a 0.

Thanks for your help.
 
Last edited:
Hey Robert,

tried the macro today. Everything worked great. You are a genius. Thanks so much. If I ever have any questions, I'll be sure to ask you, the Master. Thanks again.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If I ever have any questions, I'll be sure to ask you, the Master

Thanks for the kind words but I'm a student compared to some of the people here.

You should also start a new thread for each separate question to give yourself the best possible change of having it answered as well giving others to the opportunity to learn / have a similar problem solved.
 
Upvote 0
Hey Robert,

I was using that macro that you edited for me and it worked fine on Office 2010 but when I tried using it on Office 2003 there seems to be a problem. After experimenting for a while I realize that when "text" is entered into columns A through D then the current date is entered in column J fine. What I forgot to mention to you is that in column A and B, I type numbers here. Column A is just straight numbers 00-99. In column B, I type the time here and the cell is formatted to ##":"##. It enters the colon automatically. So when I type numbers into column A or B something gets messed up and freezes the spreadsheet because I think its expecting "text" or alpha letters here.

Also the formula you wrote to calculate the change to give back to the customer also freezes up the spreadsheet when I enter the Cash Given column. So first I enter the Amount Due and everything is fine, then when I enter the Cash Given and its about to calculate the Change that I have to give back, that's when it freezes.

Again, everything worked fine on Office 2010 with no problems. This is only happening on Office 2003 and I haven't tested it on Office 2007 yet. The computers in our office are using all different versions of Office which is very frustrating. Sorry to bother you again but I just can't seem to figure out whats wrong.

Thanks again for all your help.
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,230
Members
453,152
Latest member
ChrisMd

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