+ Reply to Thread
Results 1 to 3 of 3

add an additional range of cells to some of the original range when doing a VLOOKUP?

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    14

    add an additional range of cells to some of the original range when doing a VLOOKUP?

    Hello

    I'm wondering if its possible to add an additional range of cells to some of the original range when doing a VLOOKUP?

    For example please refer to my attachments

    In cell C5 of the 'Breakdown checklist' there is a vlookup which has pulled through the hours from the 'Jan 18 overtime & shift' in cell F3. I have taken it out for the purpose of this post as I didn't want to share the file path but the formula reads;

    =VLOOKUP(A5,'S:\File Path not shared\[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B$1:$G$56,5,0)

    What I would like to do next is have the same formula in cell C9 of the breakdown checklist so that it pulls through the hours from cell I3 of the Jan 18 overtime & shift. I will still need to include the data from column B-D but instead of picking up F and G I need to pick up I and J. Is this possible?

    If so, then so on and so fourth for 'Time @ 2', 'Shift Premium' and 'O/Time on shift'.

    There are numerous names below 'Joe Bloggs' so I'm assuming the formula can just be copied down and will work.
    Attached Files Attached Files
    Last edited by Rumpus24; 01-09-2018 at 09:39 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,261

    Re: add an additional range of cells to some of the original range when doing a VLOOKUP?

    In B5

    =SUMPRODUCT(('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$G$3:$S$3)*('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$F$1:$R$1=$A4)*('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B$3=$A5))

    in C5

    =SUMPRODUCT(('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$F$3:$R$3)*('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$F$1:$R$1=$A4)*('[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B$3=$A5))

    Copy/past other cells

    NOTE: headings need to be consistent
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,104

    Re: add an additional range of cells to some of the original range when doing a VLOOKUP?

    I'm not sure if I follow you, but :

    =VLOOKUP(A5,'C:\Users\DGlenn\Downloads\[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B:$S,5,FALSE)
    and then

    =VLOOKUP(A5,'C:\Users\DGlenn\Downloads\[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B:$S,8,FALSE)
    and then

    =VLOOKUP(A5,'C:\Users\DGlenn\Downloads\[January 18 Overtime & Shift.xlsx]Monthly Accrual'!$B:$S,11,FALSE)
    etc.

    changing the path as needed....
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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] Count cells in range that match corresponding cell, and meet an additional criteria.
    By Nyima in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2016, 04:11 PM
  2. Loop through files in folder, copy range, Paste range to original workbook
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-09-2016, 05:33 PM
  3. Emailing cells range and keeping original format
    By simonplus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2016, 01:55 PM
  4. Replies: 6
    Last Post: 07-30-2014, 04:46 PM
  5. [SOLVED] Set values only of range of previous sheet equal to range of original sheet
    By ozizushi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 12:13 PM
  6. Replies: 1
    Last Post: 09-04-2013, 07:23 AM
  7. Count a single range using additional criteria from another range
    By FatFoot in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2013, 08:40 PM

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