+ Reply to Thread
Results 1 to 6 of 6

Find numbers in a column that equal a number in a cell.

Hybrid View

  1. #1
    Registered User
    Join Date
    04-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    83

    Find numbers in a column that equal a number in a cell.

    I have a column of 1500 numbers. I want find a combination of numbers in that column that equal a number in a specific cell. There may be two numbers in the column that equal that number if added up or more numbers. How can I do this.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Find numbers in a column that equal a number in a cell.

    Should be able to accomplish this using the "=SEARCH" function.

    http://office.microsoft.com/en-us/ex...in=HP010342656

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find numbers in a column that equal a number in a cell.

    Hi,

    There are several sites that offer potential solutions to this. It mainly boils down to a choice between VBA code or using the Solver.

    This site http://www.k2e.com/tech-update/tips/...specific-value uses the Solver methodology
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    04-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Find numbers in a column that equal a number in a cell.

    Thanks for the input and some great tools that I will use later but I am looking for something different. Example:

    Column A
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    and b1 has 20. Is there a VB that will identify all formulas possible out of column A to total B1 (20)

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find numbers in a column that equal a number in a cell.

    Hi,

    So are you now changing your original requirement. Originally you said you wanted 'a' combination of numbers. Now you say you want 'all' combinations.

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Find numbers in a column that equal a number in a cell.

    Hi,

    I've found the following very helpful


    http://www.tushar-mehta.com/excel/te.../match_values/


    Cheers
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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. Excel: Which numbers in a column equal a certain number (withou.
    By Pax in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2005, 12:08 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