Auto Splitting of Data to 2 Worksheets

Bellablu

New Member
Joined
Oct 31, 2013
Messages
16
Hi,

I am creating a workbook for other users to manage money receipting. Problem is receipted data it is processed by two different areas & the data needs to be split & sent respectivly. I am trying to make it simple for the areas receiving the monies as this is not their primary job I am dealing with numerous staff with different skill sets & knowledge.

I have tried to attach my workbook & images but I am not having any luck.

Basically I want the receivers to complete sheet one only of the Cash Book.

I am now trying to work a macro / formula / whatever to auto popuate the further two sheets isolating the Cash/Cheque & EFTPOS payments, which in turn can be just printed & sent off to their respective areas.

Can anyone offer assistance or a solution.

Much appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Here is the first sheet, where all the data is entered, but depending on the payment method the data needs to be split on to separate sheets & sent to difgferent departments for processing. So I am trying to automate the splitting of data, all EFTPOS transaction to one sheet & all cash/chq transactions to another sheet. The two sheets are exactly the same as the original sheet, I just need them to self populate depending on their payment method. If I have to put a formula in every cell that is fine as I will protect this sheets so no one can play with them.
Payment Method
Date
Receipt #
Name
Amount Received (GST Inc)
Check
Permit
Permit
Licence




EFTPOS
30/10/13
230
Fred Smith
20.00
20.00
Cheque
30/10/13
231
John Doe
40.00
40.00
EFTPOS
30/10/13
232
Luke Harris
60.00
60.00
Cash
31/10/13
233
Darren Loser
20.00
20.00
Cheque
1/11/13
234
Brad Walks
44.00
EFTPOS
1/11/13
235
Erin Win
66.00
Cash
2/11/13
236
Jane Doe
80.00
Cheque
2/11/13
237
Hanry Whinst
20.00

<tbody>
</tbody>
 
Upvote 0
Try this:


Excel 2010
ABCDEFGHI
1Payment MethodDateReceipt #NameAmount Received (GST Inc)CheckPermitPermitLicence
2EFTPOS30/10/13230Fred Smith2020
3Cheque30/10/13231John Doe4040
4EFTPOS30/10/13232Luke Harris6060
5Cash31/10/13233Darren Loser2020
6Cheque1/11/2013234Brad Walks44
7EFTPOS1/11/2013235Erin Win66
8Cash2/11/2013236Jane Doe80
9Cheque2/11/2013237Hanry Whinst20
Transaction Data



Excel 2010
ABCDEFGHI
1Transaction type:EFTPOS
2
3Payment MethodDateReceipt #NameAmount Received (GST Inc)CheckPermitPermitLicence
4EFTPOS30/10/13230Fred Smith2020
5EFTPOS30/10/13232Luke Harris6060
6EFTPOS41285235Erin Win66
EFTPOS
Cell Formulas
RangeFormula
A4=IF(ROWS(A$3:A3)<=COUNTIF('Transaction Data'!$A$2:$A$999,EFTPOS!$B$1),INDEX('Transaction Data'!A$2:A$999,AGGREGATE(15,6,ROW('Transaction Data'!$A$2:$A$999)-ROW('Transaction Data'!$A$2)+1/('Transaction Data'!$A$2:$A$999=$B$1),ROWS(A$3:A3))),"")


Fill formula down and across.

Also to hide zeroes on EFTPOS tab, highlight all of the cells, right click, and select format cells. Go to Number, and Custom, and in the type box use: 0;-0;;@

Lastly, for other worksheets, copy the same format and just change the value in cell B1.
 
Upvote 0
Slight correction to previously posted formula:

=IF(ROWS(A$3:A3)<=COUNTIF('Transaction Data'!$A$2:$A$999,$B$1),INDEX('Transaction Data'!A$2:A$999,AGGREGATE(15,6,ROW('Transaction Data'!$A$2:$A$999)-ROW('Transaction Data'!$A$2)+1/('Transaction Data'!$A$2:$A$999=$B$1),ROWS(A$4:A4))),"")
 
Upvote 0
Hi Ben,

Thank you so much for your responce & assistance, sadly its not working for me. I noticed your using Excel 2010, does it matter that I am in Excel 2007? I ended up copying your above sheet examples into a new workbook & tried both formulas just to get a better understanding of the formula & apply it in my workbook, but kept getting the error "#NAME?".

Is thee a way on the forum that I can attch my workbook for you to look at?

Cheers
 
Upvote 0
Yes, it does matter. I am using a function that is new to 2010. I can replace it with an older function tomorrow.
 
Upvote 0
Try this:


Excel 2010
ABCDEFGHI
1Transaction type:EFTPOS
2
3Payment MethodDateReceipt #NameAmount Received (GST Inc)CheckPermitPermitLicence
4EFTPOS30/10/13230Fred Smith2020
5EFTPOS30/10/13232Luke Harris6060
6EFTPOS1/11/2013235Erin Win66
EFTPOS
Cell Formulas
RangeFormula
A4{=IF(ROWS(A$3:A3)<=COUNTIF('Transaction Data'!$A$2:$A$999,$B$1),INDEX('Transaction Data'!A$2:A$999,SMALL(IF('Transaction Data'!$A$2:$A$999=$B$1,ROW('Transaction Data'!$A$2:$A$999)-ROW('Transaction Data'!$A$2)+1),ROWS(A$4:A4))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Ben,

What do you mean "Entered with Ctrl+Shift+Enter" I have not used that before. Do I type in the in the formula or cut & paste. I am confused now.
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,727
Members
449,049
Latest member
MiguekHeka

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