+ Reply to Thread
Results 1 to 5 of 5

Data lookups

  1. #1
    Registered User
    Join Date
    04-04-2010
    Location
    london
    MS-Off Ver
    Latest for the mac
    Posts
    20

    Smile Data lookups

    Hi guys,

    looking for some help, I have attached a file so that you can easier see the problem i face, well for me a problem, for some of you guys n gals maybe not.

    there are two sheets, one is a time sheet,. the other contains data. what i want to happen is this

    Columns I,J and K to auto populate with the basic, lower and higher hours using the data in sheet 2


    in the data sheet column A = day and col b = the shift pattern
    in the time sheet column B = day and col e = the shift pattern

    i want to somehow lookup the day and the shift pattern and auto fill the relevant basic, lower and higher columns

    Not sure if any of that makes sense, but if so is anyone able to pose a solution please.

    help much appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Data lookups

    Hi shutchinson,

    No problem.
    Create a index on the data sheet and a vlookup on the time sheet. See attached. say thanks,

    If your mac version doesn't understand IfError, let me try again.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-04-2010
    Location
    london
    MS-Off Ver
    Latest for the mac
    Posts
    20

    Re: Data lookups

    Hi MarvinP,

    that works great, thank you. not great with excel, could you explain if you have the time how it works please.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Data lookups

    OK - here's the story,

    On the Data Cells sheet I inserted a blank column A and did a formula there.
    This formula said to stick the Day and Times together in a single Cell. I wanted this to do a VLookup on the Front Sheet. The formula in A3 and down is:
    Please Login or Register  to view this content.
    This is called a "building an index" type of formula.

    Now on the Front sheet I want to look up the Basic, Higher or Lower numbers for each row. In the row is a Day and Time. So the formula in I10 does this.
    It takes the Day and Time in B5 and E5 and puts them together as the INDEX did above. I use this combined index and go looking on the Data Cells sheet for a VLookup match. When I find the correct row, where the indexes match, I return the number of rows to the right. For Basic it is 6 columns to the right and 5 for Higher and 4 for Lower. See the formulas in Row 10 columns I, J and K.

    Then when I pulled it down it gave some #N/A stuff because it couldn't find the index in the table on Data Cells Sheet. I added the IFERROR part of the formula to return a blank instead of an error answer.

    hope that helps.
    Last edited by MarvinP; 04-17-2011 at 08:12 PM.

  5. #5
    Registered User
    Join Date
    04-04-2010
    Location
    london
    MS-Off Ver
    Latest for the mac
    Posts
    20

    Re: Data lookups

    that really does, thank you very much for your time and help

+ 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