Closed Thread
Results 1 to 5 of 5

vb auto data sort when entry 2 cell

  1. #1
    Registered User
    Join Date
    02-22-2008
    Posts
    2

    vb auto data sort when entry 2 cell

    After wee bit of help if at all possible, very new to exce..

    I work in a franco machine hall and I track the money that is paid out every day from each machine. There are 36 machines in total.

    I have 7 worksheets, labelled Monday to Sunday, and one work sheet called week summary. Within each work sheet I have a section for my machine payouts. I have dedicated 40 rows to this, 2 columns. I use a drop down list to select the machine number and I then manually enter amount the machine paid out.

    From each of the day work sheets I have cut and past special (paste link) the 40 rows containing the machine name and payout amount into the week summary work sheet. From my understanding this data (week summary) automatically updates when I enter machine readings in the day work sheets. So by the end of the week I have all the payout data from each day in the summary work sheet.

    Hears the problem!!

    I would like this data, in the summary work sheet, to auto sort itself when ever I enter new data in the days work sheets. Thus grouping all the machine readings for each day together.. Hope this is making sense so far. I would then like to somehow add each machine payout together (for hole week, not just days) to give me a total of what each machine paid out that week.

    I know this is possible using macros but to be honest I am a complete airhead when it comes to these.

    When I take the reading manually from the machines they tell me what each machine paid out for the week. At the moment, If my total actual machine payouts (read from machine) does not match my total recorded cash payouts (ones in daily work sheets, money out) then I have to go through each day, find Each machine and add up all the totals to give me total cash paid for that machine for the week and see if the actual machine readings match. This way I can trace back where mistakes have been made. Confused, well I am lol

    Any ideas on how 2 go about this would be greatly appreciated,
    Many may thanks in advance

    Norman

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    If you have a fixed number of machines, the could you make the summary sheet in a matrix format with the week days across the top (Mon...Sun), and the machine names down column A.

    That way you could use Vlookup to bring back the amount for each machine for each day and have them all together. If a machine doesn't pay out for a day, then the result would be 0.

    rylo

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    n_caskey,

    Please read forum rules and message to cross posters below and then add the link to the other forum

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    02-22-2008
    Posts
    2

    2 forums post, did not know, sorry

    hi,

    thanks for getting back to me, i have posted this in 2 forums. Im sorry if have offended you or any one on in the other fourm by posting in both. kinda new to whole computer thing, is post in 2 fourms like cheating on the misses? Was not aware of this, sorry

    http://www.excelforum.com//showthread.php?t=634301
    http://www.mrexcel.com/forum/showthread.php?t=304982

    thanks
    norman

  5. #5
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    In attached file I inserted two macro that can help you.

    I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

Closed 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