+ Reply to Thread
Results 1 to 2 of 2

conditional lookup

  1. #1
    Registered User
    Join Date
    05-20-2005
    Posts
    2

    Wink conditional lookup

    I need to find a value in a column based on the column's heading and a certain number a couple columns away. This info is not static, so I need a formula robust enough to always look for the column with 'PCB' as the header, and a particular number in the PCB column. Then it needs to find the total number of PCBs scheduled in a column that has a date heading.



    Attached is a picture with an example of what I'm talking about. Currently I'm using a formula that will always look in column G for the number and then lookup G+2 for the amount.

    Here is the formula I'm using now. $A4 is the PCB number in the spreadsheet that this formula is in.
    =SUMIF('[LocalFile.xls]102-1'!$G:$G,$A4,'[LocalFile.xls]102-1'!$K:$K)

    Looking for robustness!!
    Thank you!!


    I apologize for all of the censored info
    Kurtis
    Attached Images Attached Images
    Last edited by JimVarney01; 05-24-2005 at 06:42 PM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Is this what you're looking for?

    =SUMIF(INDEX('[LocalFile.xls]102-1'!A6:J100,0,MATCH("PCB",'[LocalFile.xls]102-1'!A3:J3,0)),$A4,'[LocalFile.xls]102-1'!K6:K100)

    OR

    =SUMPRODUCT((INDEX('[LocalFile.xls]102-1'!A6:J100,0,MATCH("PCB",'[LocalFile.xls]102-1'!A3:J3,0))=$A4)*'[LocalFile.xls]102-1'!K6:M100*('[LocalFile.xls]102-1'!K3:M3=$B4))

    ...where B4 contains the date of interest.

+ 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