+ Reply to Thread
Results 1 to 2 of 2

Need help with formula to vlookup date of week to pull in 2 columns of data

  1. #1
    Registered User
    Join Date
    10-22-2017
    Location
    Murrieta
    MS-Off Ver
    Office 365 2016
    Posts
    1

    Question Need help with formula to vlookup date of week to pull in 2 columns of data

    I am stuck, I have an excel sheet that has date formulas to automate the payperiod date data, providing the day of week and the date of the month. My company's work week starts with a Sun and ends with a Sat. I need a formula that will look through the column that shows the day of week and pull the data for the first Sun and the next 6 days, pulling 2 columns of data for Rate 1 and Rate 2 Hours. I then also need the same type of formula but for the second Sun from the Day Column, then the next 6 days after that. I need for this to automatically update when ever we change the date data, this is why I am doing the formula this way. Please note that the day column Cell B15 is the result of the =DATE($C$8,MATCH($D$8,Data!$B$2:$B$13,0),Example!$E$8) formula. And the rest of the Day Column is the result of =B15+1. I have tried various formulas from VLookup and index, but I am just not getting it for some reason. The Day Column B15:B32 is formatted as custom ddd and I also made sure that the J column days of the week (that I was using as the search variable) were also formatted with the same.

    This is to help me in determining the Weighted Overtime Rates for a Split Rate Semi Monthly employee. I know how to do the calculations, but am trying to automate a spreadsheet for the office staff to be able to use to with minimal calculations on their part.

    Thank you for any and all help,

    Star


    Capture.JPG
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Need help with formula to vlookup date of week to pull in 2 columns of data

    Try this in K15 copied across to L15 and down to M21:

    =INDEX(D$15:D$32,7-WEEKDAY(DATE($C$8,MONTH(DATEVALUE($D$8&" 1")),$E$8),2)+ROWS(K$15:K15)-1)

    and this for the second week:

    =INDEX(D$15:D$32,7-WEEKDAY(DATE($C$8,MONTH(DATEVALUE($D$8&" 1")),$E$8),2)+7+ROWS(K$15:K15)-1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Pull Data from Last Week Only?
    By excellenthelp in forum Excel General
    Replies: 6
    Last Post: 11-23-2016, 09:11 AM
  2. [SOLVED] Finding a Formula to pull data from multiple columns based on todays date
    By BootleggerDave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2015, 06:56 PM
  3. [SOLVED] A VLOOKUP formula to pull over data - Really need help :(
    By jennijohnstone in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-23-2015, 05:01 AM
  4. Pull data from only certain columns in a table using a formula
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-25-2015, 03:42 PM
  5. Pull in Data for Week to Date and Previous Day
    By cartica in forum Excel General
    Replies: 5
    Last Post: 08-06-2013, 09:41 PM
  6. VLOOKUP to pull data from multiple columns
    By Paragoomba in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-11-2013, 08:47 AM
  7. [SOLVED] Pull information based on week date falls under
    By mjhopler in forum Excel General
    Replies: 1
    Last Post: 06-19-2012, 11:54 AM

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