Getting Excel to copy from one sheet to the other based on Category.

RoSe13

New Member
Joined
Mar 4, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have this spreadsheet and on one sheet I have a list of assets, on another sheet I have 7 tables, one for savings, checking, investments, etc. I normally have to copy over all the assets and manually sort them by each category then add them to their respective table, since this is very time consuming, I want to be able to have excel do that automatically. I know I probably have to use a macro because it would be too many rules for an "if" equation right? I did some research and found something called an if then statement, but I am a little confused. Can someone explain how I can get this to be done automatically?
If it helps there is a column on the first sheet that tells you the asset type, so I was previously just filtering the type and copying and pasting, the only thing is that its not in the same order. For example on sheet 2 (with the tables) column B lists the Banking institution and Column D lists the account number, but on sheet 1 column A lists the banking institution and column D lists the account number.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
It sounds like you may be able to use an Index function. Your description of your tables is confusing, though. Do you have one "master" table on one sheet that has many categories of data in it? Then, on one other sheet, you have 7 different tables, each table one unique category, so that all 7 tables make up all the possible categories in your "master" table?
Could you send a picture of your table headers, or maybe provide a different description of data? I don't think you need a macro to do this.
Also, are you tables actual Excel tables, or are they just lists with headers?
 
Upvote 0
Sorry about that, the tables aren't actual tables, they are just cells with a border on them and a header. There is one master table with many categories, however those categories match the separate tables on the sheet with the 7 tables. In other words, yes, the 7 tables do make up all the possible categories in my master table.
I've attached a couple pictures one of an example of the master list, I actually copied and pasted a portion of one list and just changed the account numbers. The second picture is a portion of the second sheet with the tables. Hopefully this clarifies what I mean. I just want to have excel automatically fill in as much information as possible, best case scenario I would only have to manually fill in the account names on the second sheet.
 

Attachments

  • Master.PNG
    Master.PNG
    35.9 KB · Views: 8
  • Sheet 2.PNG
    Sheet 2.PNG
    28.9 KB · Views: 8
Upvote 0
It sounds like you may be able to use an Index function. Your description of your tables is confusing, though. Do you have one "master" table on one sheet that has many categories of data in it? Then, on one other sheet, you have 7 different tables, each table one unique category, so that all 7 tables make up all the possible categories in your "master" table?
Could you send a picture of your table headers, or maybe provide a different description of data? I don't think you need a macro to do this.
Also, are you tables actual Excel tables, or are they just lists with headers?
I accidentally posted to the thread instead of replying directly to you, however, I forgot to mention that an index function would not work because the master list changes from person to person, so I would have to constantly keep changing the equation, which would also be time consuming. What I need is something that would search for an account type, for example, a savings account and then fill the second sheet with the information for that savings account.
Please let me know if you have any other questions.
 
Upvote 0
I understand your setup now! I'll see if I can come up with something to help. One thing I don't understand - you said the master list "changes from person to person." What does that mean? Are there multiple people providing their own master lists, and each one is a different format??
Also, would you be opposed to turning these tables into actual Excel tables? I find that they're much more friendly to work with, especially when you have variances in formats and lengths of tables.
 
Upvote 0
I understand your setup now! I'll see if I can come up with something to help. One thing I don't understand - you said the master list "changes from person to person." What does that mean? Are there multiple people providing their own master lists, and each one is a different format??
Also, would you be opposed to turning these tables into actual Excel tables? I find that they're much more friendly to work with, especially when you have variances in formats and lengths of tables.
Yes, there are multiple people providing their own list of assets. I would not be opposed to turning it into Excel tables at all, anything that can help me be more productive. Thanks so much!
 
Upvote 0
Are all of the people providing lists of assets providing them in the same template (the format you provided), or are they all in different formats?
 
Upvote 0
One more question - in your small tables, where does the Account Name and Current Balance come from? I don't see those fields in your master table.
I think I have a solution worked out using formulas that could work for you. It depends on your answer to the previous questions, though. :)
 
Upvote 0
One more question - in your small tables, where does the Account Name and Current Balance come from? I don't see those fields in your master table.
I think I have a solution worked out using formulas that could work for you. It depends on your answer to the previous questions, though. :)
Yes, all of the people provide it in the same format. The account name we have to input manually, so that's the only field we can't auto fill. The cash value is what we use to fill, current balance/average balance/account value.
 
Upvote 0
Ok, I've worked up a file that I think will do what you want it to do. Unfortunately, we can't attach files, so I'll have to give you screen shots. Let me know if some of it doesn't make sense.

Also, this is the simplest and most comprehensive way I can think of to use formulas to do what you want. That being said, a macro may do what you want better. I am, however, not good with macros! If you'd like a macro solution, I recommend you do a new post and start the title of it with "vba..." There are some AMAZING programmers on this site who can help you, but you'll need to catch their attention. I find that leading your title with "vba" is a good way to do that, as I use assistance for macros on this site often. I'll send some photos of how I recommend using formulas for your task, though.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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