+ Reply to Thread
Results 1 to 8 of 8

Fetching values from another tab

  1. #1
    Registered User
    Join Date
    06-03-2008
    Posts
    46

    Fetching values from another tab

    In the first tab, I have different values for:

    1)workdays
    2)Saturdays
    3)Sundays,

    for every 0,5h.

    In the second tab, I have a list with every 0,5h for one year. Now I'm trying to make this tab fetch the values from the first tab.

    Thus, for instance for 2006:

    *The year starts with a Sunday, so all the corresponding values for Sunday are fetched.
    *Then it just goes on: fetching 5xworkday+Saturday+Sunday and so on.

    Is this possible to achieve?



    Basically, I want to make this "draggable", so I don't have to feed every day manually.

    Sunday

    =tab1!N14
    .
    .
    .
    =tab1!N61

    Monday

    =tab1!O14
    .
    .
    .
    =tab1!O61

    Tuesday

    =tab1!O14
    .
    .
    .
    =tab1!O61

    .
    .
    .

    Saturday
    =tab1!M14
    .
    .
    .
    =tab1!M14

    .
    .
    .

  2. #2
    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
    Kribulin,

    Please read forum rules below and then add the link to the cross post

    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 !!!

  3. #3
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    http://www.mrexcel.com/forum/showthread.php?t=324172

    Sorry for my mistake.

  4. #4
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    I don't have any experience from macros, but could it be done that way? Or is there an easier solution?

  5. #5
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    Let me try to clarify it further:

    In the first sheet I have the following:

    Workday

    00:00 value1
    00:30 value2
    and so on, until
    23:30 value48

    Saturday


    00:00 value1
    00:30 value2
    and so on, until
    23:30 value48

    Sunday


    00:00 value1
    00:30 value2
    and so on, until
    23:30 value48


    In the second sheet, I have [respectively want] the following:

    01.01.2006 00:00 [fetch Sunday_value1]
    01.01.2006 00:30 [fetch Sunday_value2]
    an so on, until
    31.12.2006 23:30 [fetch Sunday_value48]


    I can do the first day of the year (the Sunday) manually, but then I try to create a function which repeatedly fetches the values: 5xworkday_values+1xSaturday_values+1xSunday_values for all the weeks of the year.

    I hope it's clear now!

    Thanks for the assistance!

  6. #6
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    I've now installed HTML Maker, but neither the "send source to clip board" nor the "View source" button work. Here are the generated files however:

    From the first tab:
    http://www.uploading.com/files/ZCP5Y9JX/temp_l.htm.html

    And from the second tab:
    http://www.uploading.com/files/F4QXB1U2/temp_r.htm.html


    Hope that it's finally possible to solve! Thanks again!

  7. #7
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    For some reason I don't manage to display properly on this forum, but here it can now be seen: http://www.mrexcel.com/forum/showthread.php?t=324172

  8. #8
    Registered User
    Join Date
    06-03-2008
    Posts
    46
    Any ideas?

+ 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