+ Reply to Thread
Results 1 to 5 of 5

Searching multiple columns to return one number

  1. #1
    Registered User
    Join Date
    08-08-2017
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    40

    Searching multiple columns to return one number

    Hey,

    I've attached a sample worksheet. I'm trying to search multiple columns to return a number. I've tried Index Match, Index Match Match, and I made an attempt at a formula with sumproduct but I haven't found one that works. I did use CSE with the array formulas but still didn't get one to work. It seems it should be relatively straight forward formula but it is eluding me. Any help would be appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Searching multiple columns to return one number

    Here is a VBA solution
    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Searching multiple columns to return one number

    In B4 try;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And copy down.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Searching multiple columns to return one number

    Try

    B4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    08-08-2017
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    40

    Re: Searching multiple columns to return one number

    Thank you so much for the help, apologies for the late reply. Both formulas worked. I didn't try the VBA as I'm not familiar with using it yet and the formulas worked for me. I'll save it for notes though so thank 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] Return single value by searching multiple criteria in multiple column
    By Ramesh h&m in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 07-01-2017, 07:02 AM
  2. Replies: 1
    Last Post: 12-02-2015, 07:39 AM
  3. [SOLVED] Searching a Workbook to return multiple results
    By m3k1rk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2013, 06:12 AM
  4. Searching a reccuring value on a multiple, to return the max date
    By alanalmarza in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2013, 06:26 AM
  5. Searching 1 row, multiple coloumns for a number and return name
    By Fieldsinc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2012, 10:16 PM
  6. Replies: 2
    Last Post: 09-06-2012, 07:05 PM
  7. Vlookup searching text return product number
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-26-2009, 09:35 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