+ Reply to Thread
Results 1 to 10 of 10

Formula required to look up four values and return values from a Column

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Formula required to look up four values and return values from a Column

    Hello All,

    I am using Excel 2013 and have a problem as shown in the attached sample data.

    I have two sheets viz output and 10.02.2022 (this will change on daily basis).

    In output sheet I need to pull up value from Cell S139 from the 10.02.2022 sheet as follows:

    If Col A (Category) matches Cell A137 on 10.02.2022 sheet.
    If Col B (Item) matches Cell B139 on 10.02.2022 sheet.
    If Col C (Type) matches Cell H139 on 10.02.2022 sheet.

    Then it should pull up the value from respective rows of Cell S139 till down of 10.02.2022 sheet.

    As this will be part of daily progress report if the formula can take into consideration the cell M1 of Output sheet and Cell U3 of 10.02.2022 for updating.

    I have colored for explanation purpose only.

    Thanks in advance.
    Last edited by sameer79; 02-23-2022 at 02:15 AM.

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,416

    Re: Formula required to look up four values and return values from a Column

    worksheet Or Tab name : output

    Cell M3 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 02-16-2022 at 11:55 AM.

  3. #3
    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,196

    Re: Formula required to look up four values and return values from a Column

    Try

    =IF(INDIRECT("'" & Sheets &"'!A137")=[@Category],SUMIFS(INDIRECT("'" & $M$1& "'!s139:s1000"),INDIRECT("'" & $M$1& "'!B139:B1000"),[@Item],INDIRECT("'" & $M$1& "'!H139:H1000"),[@Type]))

    Change M1 to 10.02.2022 to match tab name
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Formula required to look up four values and return values from a Column

    Dear John,

    Thanks for your time.

    It gives #Name error.

    Please see attached file.

  5. #5
    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,196

    Re: Formula required to look up four values and return values from a Column

    My error

    =IF(INDIRECT("'" & $M$1 &"'!A137")=[@Category],SUMIFS(INDIRECT("'" & $M$1& "'!s139:s1000"),INDIRECT("'" & $M$1& "'!B139:B1000"),[@Item],INDIRECT("'" & $M$1& "'!H139:H1000"),[@Type]))

    I used a named range "Sheets" so I have changed the formula

    For you: learn how to use "Evaluate Formula" as this is a key tool in Excel

  6. #6
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Formula required to look up four values and return values from a Column

    Dear John,

    Thanks for the revised formula.
    It works great but I have an issue as I mentioned that the date will be changed on daily basis. I have made a new sample please see attached.

    I have made a range name 'dynamic' and changed the formula accordingly. But obviously it is not working as you see in the sample.
    Can it be more dynamic that it is pulling the values under appropriate dates on the output sheet?

    FYI, there will be only one sheet for a day.

    I hope it is clear.

    Thanks once again for all your time and help.

  7. #7
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Formula required to look up four values and return values from a Column

    Thanks for your formula.
    It works but I want it to be more dynamic in nature.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula required to look up four values and return values from a Column

    I have made a range name 'dynamic' and changed the formula accordingly. But obviously it is not working as you see in the sample.
    The curse of Merge & Center strikes again.
    Changing the "Refers to" of "dynamic" to ='10.02.2022'!$U$3 removes the #VALUE! error and populates the cells with numbers.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Formula required to look up four values and return values from a Column

    Dear All,
    Thanks for all the help.
    Post marked SOLVED.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Formula required to look up four values and return values from a Column

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Replies: 7
    Last Post: 07-24-2020, 07:45 AM
  2. [SOLVED] Formula Required to Extract data from Column A based on Non -zero values in Column B
    By Ramzan-ul-Mubarak in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-29-2019, 06:07 AM
  3. [SOLVED] Two 'Look for Matches and return Values' Formulas required.
    By hammer2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2016, 08:25 AM
  4. Return the Appropiate Values Required
    By djrichar07 in forum Excel General
    Replies: 2
    Last Post: 08-01-2015, 11:44 PM
  5. Complex Excel Formula Required for Obtaining Values based on Column & Row
    By adeel726 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2013, 04:36 PM
  6. Replies: 3
    Last Post: 01-05-2013, 11:06 AM
  7. Return location when values add to total required
    By tarquinious in forum Excel General
    Replies: 5
    Last Post: 08-31-2011, 10:28 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