Macro/Formula Request - Data into Right Column/Row

mbfoster

New Member
Joined
Jun 20, 2008
Messages
27
I’m looking for a formula or macro that is probably a combination of a Subtotal and VLookup. I don’t know much about macros – someone has written me a Macro in the past, which I can add to my sheet – but I don’t really know how to write a real Macro. I have one tab of data, arranged as follows:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Column A Column B Column C Column D<o:p></o:p>
Date (N/A) Account Amount<o:p></o:p>
<o:p> </o:p>
For my export data, I want each transaction to be put into the proper row/column, based on the date and account listed for that amount. Row 1 will show a list of the Accounts across the top, and column A will have a list of dates along the left. For each transaction (line item) in my raw data, I want it to put the “Amount” (found in Column D of the raw data) to be put into the correct row (based on the “Account” found in Column C of the raw data) and the correct column (based on the “Date” found in Column A of the raw data). For a given date/account combination, there is usually one transaction listed – but there can be zero, or there can be multiple amounts lists. Therefore, the export should have the total listed for all transactions for that given date/account combination. <o:p></o:p>
<o:p> </o:p>
Any help would be greatly appreciated. As I said, I don’t know how to write a macro, but I can paste it into my excel file if needed. If this can be accomplished with a formula (some sort of long combination of Subtotal and VLookup, or other formulas), just let me know how. <o:p></o:p>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Sorry - copy/paste failed me.

For my raw data:

Column A is Date
Column B is not used for this function (N/A)
Column C is the Account
Column D is the Amount

Sorry for the confusion!
 
Upvote 0
It won't let me attach a screenshot. I'd download the ExcelJeanieHtml, but I'm on my work computer and it won't let me install the program. Can I email you my sample spreadsheet? Or is that a "no-no" on this board?
 
Upvote 0
I will download the ExcelJeanieHtml tonight from home, and post a screenshot of my spreadsheets. Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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