+ Reply to Thread
Results 1 to 12 of 12

Move data from one database to many sheets

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Move data from one database to many sheets

    I work in a retirement home and I am the chef. I am trying to make the weekly tally of there choices a tad bit easier and less time consuming.

    I have made a workbook that contains a sheet with the whole weeks choices for everyone, then I have added sheets for everyday of the week.

    What I am looking at doing, which I cant seem to figure out, is to have it automatically add the residents name to the weekly sheet.

    The tab for sunday is what I would like to the look like. So as I add the number choices of 1, 2 or 3 to the weekly tab I would like it to take the choice of 1 and add there name to that day.

    So on the sheet lets say Mike wants choice one for Lunch on Monday. When I enter the value of 1 I would like it to enter Mike under the Entree 1 collumn in the monday page, if I change his choice to 2 I would like it to automatically move his name to the entree 2 collumn.

    I dont know if this can be done but it will save hours of work on my part.
    Thanks Brice
    Last edited by darknessheir; 07-06-2010 at 04:36 PM. Reason: fixed title

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Move data from one database to many sheets

    Hi darknessheir;

    What you're asking for can be done, but it would be A LOT easier to work it in reverse.
    On the Monday sheet you enter the names under the correct entrees and the Weekly sheet would summarize it for you.

    I doubt that anyone can come up with a formula that would do what you want. I'm pretty sure you will need a macro to do it.

    Before anyone tries to do what you ask, please explain why you need it to go from Weekly to the Daily sheets, instead of Daily to Weekly sheet.

    Assuming that someone is willing to write you a macro that will go from Weekly to Daily sheets, how would you want it triggered? A button? Automatic when you change days on the Weekly sheet? Every time you change anything on the Weekly sheet? Or when?
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: Move data from one database to many sheets

    I will explaine what i used to have to do.]

    The weekly sheets tell us whos eating what, and tallys the amount on the bottom. This is to tell me what to make each day. I would normally have to sit down with 30 or so menus that have the residents choices on it, and 7 sheets of paper mon-sun. then i would have to go ok mike wants 1 for lunch and 2 for dinner on mon, mike wants 2 for lunch and no dinner on tues. and so on. this takes about 2 hours. I created the weekly sheet so i could make it faster by just having to look at a summary page vs the 30 plus menus. But the end result needs to be 7 sheets mon-sun with there choices.

    If we worked in reverse the weekly tally sheet would have no use.

    I would like it to work automatically, dont know if i need to have a trigger switch for the macro.
    I would like to just go on the weekly tally and change all the numbers and have it automatically change the 7 other days to match the weeks choices.

    Thank you for your responce!

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Move data from one database to many sheets

    The easiest way, I see, is to create a hidden table/database where choices are stored. Then the weekly/daily sheets simply call the data via macro or formula. I will do up a mock workbook and post it here. Give me some time (a day or two), however. I am short staffed this week due to vacations and so cannot devote much time to this project.

    Feel free to prod me with private messages if a few days have gone by and I haven't responded here.

  5. #5
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Move data from one database to many sheets

    Here is exactly what you asked for, as far as functionality. The daily sheets auto-feed from the weekly table. Pardon me for changing the format some. I just did not like the way you did it. If you prefer the other way, then I can help you rever it back.

    There is a limit of 17 of each choice, however. To add more would require a little bit of work on each sheet.

    I am still working on a database-like setup that I will post at a later date. This should get you through, however.
    Attached Files Attached Files
    Last edited by Whizbang; 07-06-2010 at 03:42 PM.

  6. #6
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: Move data from one database to many sheets

    This works great, now if only i can remember the formula to add the all together.

  7. #7
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Move data from one database to many sheets

    Quote Originally Posted by darknessheir View Post
    This works great, now if only i can remember the formula to add the all together.
    What do you mean, exactly? If you mean to add a total into the boxes at the bottom of each selection, then this should do the trick.

    =COUNTA(B6:B22) - COUNTIF(B6:B22,"")

  8. #8
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: Move data from one database to many sheets

    yeah like that, but the form i had before was simpiler, count something, it didnt count the empty cells, so if was half the length of the one you just gave me.

  9. #9
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Move data from one database to many sheets

    In this case you need to count the empty cells, because count or counta will also count anything with a formula, even if that formula evaluates to "". So, what the formula I provided does is count the cells that evaluate to "" and subtract them from the total number of cells.

  10. #10
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: Move data from one database to many sheets

    Is there anyway I can enter mondays date, like the start date for the week over the monday colum on the weekly sheet and have it automatically generate the other 6 days into there positions?

  11. #11
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Move data from one database to many sheets

    Yes. Attached is an example of that.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-03-2010
    Location
    Wisconsin
    MS-Off Ver
    Excel 2002
    Posts
    6

    Re: Move data from one database to many sheets

    Glad you did that, I figured out how to do it, and then saw your post and realized I forgot to link all the sheets to the weekly tab. This is the final copy I think. With instructions on how to work it for my employees.

    Thanks alot, this will save us tons of time.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1