+ Reply to Thread
Results 1 to 6 of 6

Cell Reference Lookup help

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    gr, MI
    MS-Off Ver
    Excel 2010
    Posts
    17

    Cell Reference Lookup help

    I am trying to have a cell with a specific value lookup a value if the conditions are true. Ill try to explain the best i can.
    In my attached spreadsheet i have tabs DT Dept.20, Scrap Dept. 20 and Dept 20 (3099). In the tab named Dept 20 (3099) under C12:C22 and C26:C36 there are blanks to enter down time hours that are located in tab DT Dept. 20. So to get the value for cell C12 in the Dept. 20 (3099) tab i am trying to get it to see if the following values are true for it and insert the corresponding value. To be true it would have to look at the following in the DT Dept. 20 tab. The resource would have to be (3099), the shift would have to be (1) and the code would have to be AC. If all of those were true it would see that the corresponding value was (1.8) and insert the value into Dept. 20 (3099) C12.

    Im not sure if this can be done with a function or if i would have to get into VB but let me know if you have any advice of questions on it.

    Thank you in advance

    Test.xlsx

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Cell Reference Lookup help

    MitchellG: Not all that sure what you're after, but try this:
    in DT Dept 20 tab G1 type in the word HELPER
    In DT Dept 20 tab G2 ENTER: =B2&C2&D2 and copy down.

    In Dept 20 (3099) tab in C13 type =VLOOKUP(13099&D13,CHOOSE({1,2},'DT Dept. 20'!G:G,'DT Dept. 20'!F:F),2,FALSE) and copy down to cover both shifts if you want.

    I've assumed you want the corresponding AC figure from the DT tab and brought in next to the AC labeled cell as in D13. If you wanted it in C12 per your Original post, change the formula from the D13 reference to AC. Hence was my confusion.

    I also edited your source data on the DT tab to give your original criteria something to find. You need a 3099,a 1, and an AC. Be sure it's there.

    Hope this gets you started.

    Pete
    Last edited by PeteABC123; 08-04-2014 at 03:56 PM.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cell Reference Lookup help

    I think you can use SUMIFS
    In C12 copied down

    =SUMIFS('DT Dept. 20'!$F$2:$F$61, 'DT Dept. 20'!$D$2:$D$61, D12,'DT Dept. 20'!$B$2:$B$61, 1)

    In C26 copied down

    =SUMIFS('DT Dept. 20'!$F$2:$F$61, 'DT Dept. 20'!$D$2:$D$61, D26,'DT Dept. 20'!$B$2:$B$61, 2)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    gr, MI
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Cell Reference Lookup help

    Thank you for the help. I was able to get it to work using the VLOOKUP formula.

    I tried to get it to work for the scrap dept 20 tab but it will not add up the quantities. Will i just have to add up all of the common scrap quantities for each shift and resource?

  5. #5
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Cell Reference Lookup help

    I'd use ChemistB's SUMIFS example. Format as general.
    Paste into C54: =SUMIFS('Scrap Dept. 20'!D:D,'Scrap Dept. 20'!F:F,E54,'Scrap Dept. 20'!A:A, 1,'Scrap Dept. 20'!E:E, D54)
    Paste into C64: =SUMIFS('Scrap Dept. 20'!D:D,'Scrap Dept. 20'!F:F,E64,'Scrap Dept. 20'!A:A, 2,'Scrap Dept. 20'!E:E, D64)

    Copy both formulas down, and report back.

    Pete
    Last edited by PeteABC123; 08-05-2014 at 02:20 PM.

  6. #6
    Registered User
    Join Date
    08-12-2013
    Location
    gr, MI
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Cell Reference Lookup help

    Awesome!!! worked perfectly.

    Thank you for all of your help!!!!

+ 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. Lookup cell reference
    By Christian411 in forum Excel General
    Replies: 3
    Last Post: 04-09-2008, 07:03 AM
  2. Cell reference of a lookup
    By CraigD in forum Excel General
    Replies: 2
    Last Post: 03-30-2008, 10:44 PM
  3. Lookup and Cell reference
    By nsaint in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2007, 12:33 PM
  4. Row Reference & Cell Lookup
    By T Dot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-26-2006, 12:30 PM
  5. [SOLVED] two way lookup and cell reference
    By Detat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2006, 11:20 AM

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