+ Reply to Thread
Results 1 to 3 of 3

Is there a formula to search a range of cells and add whichever...

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Toronto
    MS-Off Ver
    2003
    Posts
    2

    Is there a formula to search a range of cells and add whichever...

    cells are necessary to equal a specified amount?

    For example...total amount is $575.75

    10 or 10000 lines:

    25.25
    50.50
    23.65
    500
    .14
    16.54
    .46
    20
    10
    50


    Here, for example sake, I can easily see which values are required to total 575.75, but I am working with 50000 lines and much larger #s. Does such a formula even exist?

    TIA
    Financeguy 2014

  2. #2
    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: Is there a formula to search a range of cells and add whichever...

    Hi,

    There's certainly not a regular function that would help here and I'm not aware that there's any straightforward array function. You'll need to resort to either Solver or VBA

    Checkout the methods at this site http://www.tushar-mehta.com/excel/te.../match_values/

    I've always found the VBA code mentioned works very well.
    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.

  3. #3
    Registered User
    Join Date
    09-30-2014
    Location
    Toronto
    MS-Off Ver
    2003
    Posts
    2

    Re: Is there a formula to search a range of cells and add whichever...

    Thanks Richard!! This should help!

+ 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. Modify this Search Formula to search across a range of cells
    By zicitron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2013, 08:11 AM
  2. [SOLVED] Return value from whichever of three cells is populated
    By johnmitch38 in forum Excel General
    Replies: 8
    Last Post: 09-14-2012, 07:51 AM
  3. [SOLVED] conditional formatting formula to search a range of cells
    By drfarmkid in forum Excel General
    Replies: 2
    Last Post: 06-19-2012, 03:25 PM
  4. Replies: 2
    Last Post: 03-23-2011, 11:02 AM
  5. formula or macro? whichever, I need help
    By daggyfresh in forum Excel General
    Replies: 3
    Last Post: 03-09-2006, 03:25 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