+ Reply to Thread
Results 1 to 17 of 17

Vlookup & Output off Day of Week

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Lightbulb Vlookup & Output off Day of Week

    In this example below I am neeeding a formula that will go in sheet 1 in the column before each date. The formula should use a vlookup of the center # off of sheet 1, find that center number in sheet 2 then output the center day decimal that would match the current day. Monday is Center#+.1, Tuesday is Center #+.2, etc.

    Sheet 1:
    Center 340
    12:00 AM
    ? Monday 0.00 0.00
    ? Tuesday 0.00 0.00
    ? Wednesday 0.00 0.00
    ? Thursday 0.00 0.00


    Sheet 2
    Center Day Decimal Center Day ID Day of Week Totals
    103.1 103 1 Mon 62


    Thanks

    Scottie

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Vlookup & Output off Day of Week

    Hi and welcome to the forum

    Its a little hard to make out where your data starts and end when you copy/paste like that.

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    I have attached the file that demonstrates what I am looking for.
    Attached Files Attached Files

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    Try this on Sheet1 B4 and filled down
    =INDEX(Sheet2!$A$2:$A$8,MATCH(B4,Sheet2!$D$2:$D$8,0))

    Make sure to make the Weekday formats match on both sheets.
    You have Monday Tuesday Wednesday on Sheet1, but just Mon Tue Wed on Sheet2.
    They should be the same.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    Actually, given your sample book, in Sheet 1 B4 you could just use

    =Sheet2!A2
    And fill down.

  6. #6
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    Actually I will have to use the index cause in the sheet 1 have it where you type in a certain district.. Then outputs all the center numbers in the format as shown in sheet 1 with repeated values for the days of week and center. Sheet 2 contains all data for the information through the day. So i need for it to look for the center number in the list of all center numbers and outpt the appropriate day decimal equivalent. Let me try Index and see if that works. Thank you very much!!

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    The book you posted only has 1 center shown.

    Please post a book with enough useable sample data to formulate a solution.

  8. #8
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    I have reattached the file.
    Attached Files Attached Files

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    Is this going to be 'expanded' to include a lookup based on the District as well?
    If so, might as well include that in your sample file also.

  10. #10
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Vlookup & Output off Day of Week

    Hi -

    Attached is a solution. You can change the Center Number or the decimal daily increment to create whatever daily decimal equivalent you want.

    Hope this helps.
    Attached Files Attached Files
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  11. #11
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    Ok I added the district piece also. Essentially you type the district number in Sheet 1 it populates all center numbers in the following format on sheet 1 from sheet 3. It in return must read the day of week for the correct center number from the raw data which is sheet 2. So a vlookup of the center number and an output of the appropriate decimal equivalent is what I am
    needing. Thank you for your help!!
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    Ok i just noticed that the count on sheet 3 didn't pull. It pulls all centers in that district in order. This is then outputed to sheet 1.

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    are you just trying to add the .1 .2 .3 .4 etc to the center number based on Monday Tuesday Wednesda etc ??

  14. #14
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    Yes i am essentially trying to run a vlookup of Sheet 1 cell C2 & C12 lookup of Sheet 2. , once it reads the center number output the appropriate decimal equivalent for that day. So Monday should be the center #+.1, Tuesday should be Center+.2, All outputed in Column A.

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    Seems way over complicatd to have to look that up from another sheet.

    Why not just do something like this in A4
    =C$2+(ROWS(A$1:A1)/10)

    Then in A14
    =C$12+(ROWS(A$1:A1)/10)

  16. #16
    Registered User
    Join Date
    05-09-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup & Output off Day of Week

    That will work. You are right I was over complicating it great. It is a Friday!!! lol

    Thank you very much!!

  17. #17
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup & Output off Day of Week

    Great, glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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