+ Reply to Thread
Results 1 to 22 of 22

Return single value by searching multiple criteria in multiple column

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Return single value by searching multiple criteria in multiple column

    Hi,

    The table formation in thread not working properly, even i used the option, pls advise...

    I have a table 5 rows x 7 columns in sheet 1
    1 to 6 column named various stationery material descriptions and 7th column mentioned a product code for identifying these 6 descriptions in each (1 to 5) rows.

    I am filling a material inward details in sheet 2 and the table Infinite rows x 10 columns
    1st column is date, 2nd to 8th column filling the various stationery material descriptions, 9th column is quantity and 10th column i need a formula to return the product code based on the sheet 1.

    I am filling a material sold out quantity in Sheet 3.
    I need a formula for consolidate the day to day material inward quantity for each product codes.

    Kindly do the needful.

  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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    SCREEN SHOT.JPG

    Pls find my screen shot, as the file attachment option not working.

    Pls advise

  4. #4
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    "Choose File"

    Browse ==>Select file

    "Upload"

    "Close this window"

    "Submit reply"

  5. #5
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi,

    Pls find the attached file and advise your valuable solution.
    Attached Files Attached Files

  6. #6
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    The "normal" process is to input product code and get the detail data rather than the other way round. To obtain the product code means matching all fields B:G in "Product List" with those in "Inward".

    and same for "Stock".

    Product code

    in L2

    =IF(B2="","",INDEX('PRODUCT LIST'!$H$2:$H$11,MATCH($D2&$E2&$F2&$G2&$H2&$I2,'PRODUCT LIST'!$B$2:$B$11&'PRODUCT LIST'!$C$2:$C$11&'PRODUCT LIST'!$D$2:$D$11&'PRODUCT LIST'!$E$2:$E$11&'PRODUCT LIST'!$F$2:$F$11&'PRODUCT LIST'!$G$2:$G$11,0)))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Stock

    in J4

    =IF(B4="","",INDEX('PRODUCT LIST'!$H$2:$H$11,MATCH($B4&$C4&$D4&$E4&$F4&$G4,'PRODUCT LIST'!$B$2:$B$11&'PRODUCT LIST'!$C$2:$C$11&'PRODUCT LIST'!$D$2:$D$11&'PRODUCT LIST'!$E$2:$E$11&'PRODUCT LIST'!$F$2:$F$11&'PRODUCT LIST'!$G$2:$G$11,0)))

    ..confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    in H4

    =SUMIF(INWARD!$L$2:$L$1000,$J4,INWARD!$J$2:$J$1000)
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi John,

    Its amazing...

    I am satisfied as, the quantity updated in "stock" automatically by your great formula.

    Also i request that, is it possible to update the B to G & columns (product descriptions) in "stock" sheet

  8. #8
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    Also i request that, is it possible to update the B to G & columns (product descriptions) in "stock" sheet
    I don't understand the above as this detail is in the "Stock" sheet: with what ????

  9. #9
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    If you want "Stock" to match "Product List" then

    in "Stock "

    in B4

    =IF('PRODUCT LIST'!$B2="","",'PRODUCT LIST'!B2)

    copy across to G and down

  10. #10
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi john...

    Wow....

    Its awesome really...

    It will be a big relief for me to managing the stock and i never forget you..

    Thanks and thanks a lot...

  11. #11
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    You are very welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  12. #12
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi John,

    I used this chart and i need to add one feature to make it more brilliant.

    How to avoid that, adding same product description twice and provide different product code in the Prod

  13. #13
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi John,

    I used this chart and i need to add one feature to make it more brilliant.

    How to avoid that, adding same product description twice and provide different product code in the "Product list"?

  14. #14
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    I used this chart and i need to add one feature to make it more brilliant.
    ????

    Please post file.

  15. #15
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi,

    How to avoid that, adding same product description twice and provide different product code in the "Product list"?

  16. #16
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    This in I2 of "Product List"

    =IF($H2="","",IF(COUNTIF($H$2:$H2,$H2)>1,"Duplicate Product code",""))

    copy down
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi John,

    I am asking to avoid, adding a product description, which is already available.

    Not repeating the product code, because the product code giving in a sequence order. So it will not get repeated again.

    Pls see my attachment Highlighted in yellow.
    Attached Files Attached Files

  18. #18
    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
    30,905

    Re: Return single value by searching multiple criteria in multiple column

    Use COUNTIFS and check all fields


    =IF($H2="","",IF(COUNTIFS($B$2:$B2,$B2,$C$2:$C2,$C2,.............)>1,"Duplicate Product ",""))

  19. #19
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Return single value by searching multiple criteria in multiple column

    SELECT PRODUCT LIST FROM B2:G50 and use following formula in data validation under custom

    =COUNTIFS($B$2:$B2,$B2,$C$2:$C2,$C2,$D$2:$D2,$D2,$E$2:$E2,$E2,$F$2:$F2,$F2,$G$2:$G2,$G2)=1
    it will warn you if have the same product discriptions
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  20. #20
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi nflsales,

    After doing this data validation, I don't see any warning message, once i entered the same product description again.

    Pls find my attachment and advise...
    Attached Files Attached Files

  21. #21
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Return single value by searching multiple criteria in multiple column

    remove the Row no 10 or SI 9 Try to re enter from b10:g10

  22. #22
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Return single value by searching multiple criteria in multiple column

    Hi nflsales,

    Its working and thank you so much...

    I am working on the sheet and let me come back any query or make this thread solved.

+ 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] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  2. Searching a table for multiple criteria to return single result
    By erice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2014, 09:53 AM
  3. Searching Multiple Criteria in a Column with multiple data
    By cmmercer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2014, 08:16 AM
  4. Replies: 7
    Last Post: 09-06-2013, 11:59 PM
  5. how to look up multiple multiple matching criteria and return single value
    By mikeb@aero-plastics in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2013, 07:59 PM
  6. Replies: 2
    Last Post: 09-06-2012, 07:05 PM
  7. Replies: 5
    Last Post: 05-04-2011, 06:51 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