create new tab taking data from one column

Anonymous
2019-08-26T15:07:20+00:00

Hi

I have  a spreadsheet which has many tabs at the bottom for different companies. Sheet1 is the master where all info is recorded on a daily basis, I run the macro and it copies the data to the relevant company tab, all that is ok.

Now I have been asked that a new page is created with just the contents of one column selected. So for instance column G needs to be selected from the master sheet and a new sheet created called MS,Aldi Separation and any entries that have figures to be copied to a new sheet. The list below was done manually by copy and paste from the master sheet to a new sheet added called MSaldi separation

No. Invoice <br><br>Date Company MSAldi Separation
6.0 Year to 30th June 2015
* 30/06/2014 Forty Shillings 11,026.33
6.4 25/07/2014 40 Shillings 3,567.50
TOTAL 14,593.83 14,593.83
5.0 Year to 30th June 2014
5.9 28/02/2014 Bidwells 1,665.48
5.12 31/03/2014 Bidwells 1,798.40
5.14 30/04/2014 Bidwells 2,480.25
5.16 31/05/2014 Bidwells 7,762.62
5.18 11/06/2014 Bidwells 7,200.00
5.21 30/06/2014 Bidwells 8,173.20
6.0 Year to 30th June 2015
6.5 31/07/2014 Bidwells 4,158.45
6.22 31/01/2015 Bidwells 585.00
8.0 Year to 30th June 2017
8.14 28/02/2017 Bidwells 9,899.00
8.23 30/04/2017 Bidwells 3,725.00
8.25 31/05/2017 Bidwells 3,641.91
8.31 30/06/2017 Bidwells 1,493.43
9.0 Year to 30th June 2018
9.5 31/08/2017 Bidwells 575.00
9.6 31/07/2017 Bidwells 870.00
9.10 30/09/2017 Bidwells 533.50
9.0 Year to 30th June 2018
9.27 30/11/2017 Bidwells 350.00
9.38 31/01/2018 Bidwells 1,647.00
9.0 Year to 30th June 2018
9.46 28/02/2018 Bidwells 1,192.00
9.47 31/03/2018 Bidwells 1,416.00
10.00 Year to 30th June 2019
10.60 31/10/2018 Bidwells 200.00
TOTAL 59,366.24

I hope I have made my self clear, I look forward to receiving some help.

Regards

Stephen

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2019-08-30T00:10:44+00:00

Interesting. You were able to do it all in a Table.

I see you cleaned up his company data.

I would do 2 tweaks to your layout.

First I would put all the slicers at the top of sheet, ie move the "Fiscal year" slicer

Second, I would add a "Company" slicer.

Questions:

#1. what is the "Multi Acc Invoice"? Where did this column come from? I think I see it now, but is it really necessary?

#2. Why do some rows have various styles applied to them?

#3. Why the unreadable text color for most of the Fiscal year entries?

Stephen:

Do you need / want the amounts to be totaled?

Data entry is somewhat similar, but you need a separate row for each account type. This is a better format, actually the required format, for creating a pivot table.

D'oh! (head smack!) My mistake. I should have done this too (thanks for the reminder and inspiration Jeovany!) ...  So here is what his better formatted data looks like in a pivot

No spaces!

Notice that I put the "Designated Account" and "Fiscal Year" columns into the "Filter" area. This added the option to filter the pivot table in the upper right corner of the pivot. So you can filter by the specific account you wanted, and I picked one year, but if you need, you could also select all years.

I think this new pivot gives  you what you need.

(Yes, I am pivot crazy.)

Here is another example using the same pivot. I've filtered for "All" accounts to and one specific year, 2017. It includes a total for all accounts that year

Here is a link to my tweak of Jeovany's file

https://1drv.ms/x/s!Am8lVyUzjKfpoCf8_-gzab5ruAz0?e=xk0cgJ

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

55 additional answers

Sort by: Most helpful
  1. Anonymous
    2019-08-28T13:22:58+00:00

    Hi

    I have downloaded your revised file.

    1 If I want to delete a line for instance in case of error, can I just highlight the row and press delete?

    2 Is there a way to ensure that the user presses tab at the ned of an entry and not press enter so it will expand the pivot table?

    3 What is the purpose of the tab called lists? do we need to do anything with it?

    4 in report mode, how do I get it to list just ms/aldi/retail entries and group together all entries for the companies and give a sub total?

    Thank you again for all your help.

    Regards

    Stephen

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-08-27T22:39:29+00:00

    Yes,

    I got the file. I'm working on it.

    I'll let you know when ready.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-08-27T21:12:20+00:00

    #1

    If I go to All Data, at the top is a list of some transactions

    #2

    then below that are all the other transactions, which are not in the order they were originally entered.

    #3

    Line 236 which was a line I entered before your modifications, doesn't appear anywhere?

    2019 Aug 26 Brown 100.00 100.00

    If i go to report or lists, Brown is not recorded anywhere, I have no idea which line the inputter would enter a new line of info.

    #4

    On the report page you have fiscal year 2018 & 2019, how do you add all the previous years? also how do i select all entries for one particular column and not show anything else? again no idea how pivot tables work or how to use them

    I've uploaded a new example. I've left the original one so you can practice on it to recreate what I've done in the new one. Here is the new version:

    https://1drv.ms/x/s!Am8lVyUzjKfpoCaL4T1a7Fulw5_i?e=rrE7Oc

    Yes, using Tables, PivotTables, Slicers and any other related features will require some learning on your part and the part of the users.  But once they learn a few simple features and functions their jobs will be easier.  For example, by converting the "total" column a sum of the other columns, the user can use it as a cross check on their data entry. They can compare the displayed calculated value to their original source material. If the numbers do not match, then they know to recheck their data entry on the other columns. That is just one of the learning points.   Training them how to sort the input table could make it easier to research source data for the pivot if there are apparent errors in company summaries.

    Yes, I know trying to teach some users is next to impossible. Like leading a horse to water ... you can't make them "drink"... But if you show them the advantages of the newer approach you should be able to convince most, if not all.

    Yes, you also have to learn some more about pivot tables. But the automation that they introduce is truely amazing. If you take a look at some of the webinars I have links to you will see the additional things you can do with pivots. You will be a "superstar".  If your company has a training budget, the webinars are introductions to online courses that are well worth the time and money.  They can do a MUCH better job of teaching you about PivotTables than I can, including hundreds or more likely thousands of features and functions I don't know about myself.

    You could add a "learn" tab with simple instructions for the users to enable them to use the new functionality to their best advantage. It could include links to more in-depth learning/training resources. Either something you put together specific to your needs, or to some of the links I can provide you.

    I'm guessing you are asking about my example

    #1

    I cut your data down, so it was easier for me to work with.  I just included 2 years of data during development. I picked those 2 years since they included rows that had the amounts split between several accounts.

    #2

    All of the data is still there, as you noticed at the bottom.  Since it is separated by blank lines it is not included in the pivot, yet.  I took the data from the early years, copied it, and then pasted it at the very end of the data.

    #3 #4

    Simply delete the blank lines in the data to add it to the input table, then right click anywhere inside of the Pivottable,  and select "Refresh".

    I already told you how to do data entry, but again, you have multiple options.

    #A

    You can simply add the data to the blank row immediately below the table. The table will extend to include that row. Like normal, press <tab> to move to next cell in row. At the end of the row in the table, pressing <tab> will insert a new row and move you to the start of the row.

    After adding the data to the bottom of the table, although it is not necessary for the pivot, you can sort the table to place it "in order" for verification against your input source.

    The sort you would use is simply date.

    The sort I used was Fiscal Year end,  then company name then date, that way all of the relevant data is sorted together

    #B

    Or you can insert a blank row in the middle of the table, ie use <CTL><SHF><+> then enter data

    #C

    Or you can copy the data from another spreadsheet and simply paste it to the bottom of the existing table, then use the pivot table refresh to include it in the pivot.

    When using the slicer(s) you can clear the current selections multiple ways:

    • click on any other single entry to select it
    • in the top right corner of the slicer box there is a funnel and "x", the "x" turns red when a selection is made. click on the red x to clear the selection
    • right click the slicer and select "clear slicer" in the context menu

    If you are interested in learning more about tables and pivottables, I can provide links to resources that will get you started.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-08-27T15:59:33+00:00

    Hi

    I have just got back from work and I am starting to look at it. If I go to All Data, at the top is a list of some transactions and then below that are all the other transactions, which are not in the order they were originally entered.

    Line 236 which was a line I entered before your modifications, doesn't appear anywhere?

    2019 Aug 26 Brown 100.00 100.00

    If i go to report or lists, Brown is not recorded anywhere, I have no idea which line the inputter would enter a new line of info.

    On the report page you have fiscal year 2018 & 2019, how do you add all the previous years? also how do i select all entries for one particular column and not show anything else? again no idea how pivot tables work or how to use them

    I appreciate what you have done, however it is no good if no one knows how to use any of the functions.

    As i stated at the beginning, The master sheet needs to stay as it is, for the inputter to just enter the data, so any ideas you think will achieve the end goal, I am more than willing to listen to you.

    Regards

    Stephen

    Was this answer helpful?

    0 comments No comments