Forumula / Macro required to create automated billing and then Mail merge

citibond

New Member
Joined
Sep 12, 2014
Messages
3
I have two spreadsheet one is my main spreadsheet which contains user details and email addresses, the other is a monthly downloaded spreadsheet which contains itemised listing for calls. I need to send each user an email each month with their itemised call list and total. We have been using a manual process until now and would like to automate it.

Spreadsheet 1 Fields

Tel NoNameDeptContract TypeExpiryModelLine RentalEmail Address
09092222XYZXXXBlackberry23/09/2014979010xyz@gmail.com
09088888YYYYYYIphone23/08/2015415yyy@gmail.com

<tbody>
</tbody>

Spreadsheet 2
Tel NoNumber CalledDurationCost
09092222656562525600:01:540.23
09092222687126861800:03:320.34
09088888768127681700:04:010.20
09092222876737878300:01:030.30
090888888728979827900:08:030.67

<tbody>
</tbody>

We use a vlookup to transfer the details from spreadsheet 1 to a excel invoice, but can't work out how to do a vlookup for spreadhseet 2 based on the number and also how to email automatically.
 

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.
for spreadsheet2 make a pivot table that will list every unique number and in the central box put sum of cost

then use your vlookup directly onto the pivot table

take out all subtotals and grand totals for clarity
 
Upvote 0
I have tried the above but it only returns the top value in the pivot table. I need all the column results from spreadsheet 2 to be included in the invoice
 
Upvote 0
Tel NoNumber CalledDurationCostTel NoNameDeptContract TypeExpiryModelLine RentalEmail Address
9092222656562525600:01:540.231234567freddept1Iberry16/09/201599922fred@gmail.com
9092222687126861800:03:320.349088888YYYYYYIphone23/08/2015415yyy@gmail.com
9088888768127681700:04:010.29092222XYZXXXBlackberry23/09/2014979010xyz@gmail.com
9092222876737878300:01:030.3
90888888.729E+1000:08:030.67
1234567987654300:06:531.23
Sum of Cost
Tel NoTotal############
12345671.23fred@gmail.com
90888880.87yyy@gmail.com
90922220.87xyz@gmail.com
Grand Total2.97
formula in cellbelow #########
=IF(B16="","",IF(B16="Grand Total","",VLOOKUP(B16,mytable,8)))

<colgroup><col><col><col><col span="2"><col><col span="3"><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,817
Members
449,049
Latest member
cybersurfer5000

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