Creating an automated receipt

Niven

New Member
Joined
Aug 23, 2011
Messages
45
Hi. In collecting funds, I have to give a receipt to the individual. So I am using a template from Excel 2013 which I have customized. I already know from pre-determined rates what amount should be received. On my source sheet I have a list of the people. I want to enter the person's name and it must automatically populate the rate, quantity and total amount received from the source list, on the receipt. I am including a print button which will enable me to print 3 copies of the receipt with two copies having the word "copy" on it. After printing I would like the receipt number to change to the next number. Another sheet has to give me a list of all receipts and the relevant info on it. But instead of having to type each receipt in I want it to pull through from each receipt entered. Is this possible or is this "pie in the sky" stuff?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Yes this is possible. but this is not a 1 formula fix. You will need to utilize Excel's VBE(visual basic editor) to automate the process. you should focus on 1 thing at a time. I would start by using VLOOKUP function to return the rate associated with the customers name. Once you have done that next work on the script to increment and store the receipt numbers. Will need more info to help you with the formulas. like ranges and worksheet names
 
Upvote 0
Thanks for that. I did start with VLOOKUP but it seems something in my formula is wrong. On my list I have a few names that have the same first word e.g. South Africa, South America, South Carolina. When I type South it just picks up anything that has South in it. I just thought now I should maybe on my list I should have two columns one with South and the second column with the second word, don't know but I will try.
 
Upvote 0
Whatever you decide will be your reference to the customers information needs to be UNIQUE. It should not be duplicated. this will avoid issues when using matches or lookups.
In the scenario you describe. Vlookup will return a single value for the first match it encounters. so if there are 3 entries that match your statement it will only see the first entry.

Example:

A1 = South America B1=A
A2 = South Africa B2=B
A3 = South Carolina B3=C

Formula: =VLOOKUP("South",A1:B3,2,FALSE) will return a error "#N/A"
Formula: =VLOOKUP("South*",A1:B3,2,FALSE) will return "A"
Formula: =VLOOKUP("South Africa",A1:B3,2,FALSE) will return "B"

Hope this helps.
 
Upvote 0
Is there a way to have specific formatting for telephone numbers in a cell e.g. if I enter a phone number it must come up with a certain format e.g. (011) 123 4567. Also usually with receipts and checks we have the amount in words and in numbers. How do I get a number to appear in words automatically instead of me typing it in?
 
Upvote 0
Hi

To have the proper format for your phone numbers you can use the built format. Go to Number group on the home tab, select the drop down and then go to Special and on the right side choose phone number.Apply this to all the fields you require the phone number format.

I found this article online that will convert your numbers to text. How to convert a numeric value into English words in Excel

Have a great day.
 
Upvote 0
Hi thanks the formatting works. Except for one thing the "0" before the number does not appear. I understand why it wouldn't because excel takes whole numbers but is it possible to include the "0"? When I enter 0871234567 it appears as (87) 123 4567. Can I have the zero in as well?
 
Upvote 0

Forum statistics

Threads
1,216,526
Messages
6,131,187
Members
449,631
Latest member
mehboobahmad

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