+ Reply to Thread
Results 1 to 9 of 9

Reverse finding matches to a number

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    2

    Reverse finding matches to a number

    Ok, this is a long shot but I was wondering if there is an excel function that would list cell values that match a certain number if added up together.
    For instance, if my number is $4500, it would return 3 cells that have these values: $1500, $1000 and $2000
    Is that possible?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Reverse finding matches to a number

    you can use solver to find a single solution but if you had say
    $1500, $1000 , $2000 ,$400 ,$600,$3500 it would find one of
    $400 ,$600,$3500
    $1500, $1000 , $2000
    $2000 ,$400 ,$600,$1500
    not all of them
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-24-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Reverse finding matches to a number

    Unfortunately I'm using Excel 2007 at work and therefore Solver is inaccessible. But thanks a lot.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Reverse finding matches to a number

    Try with format that you must follow like this (separate with commas) :
    $10, $100, $1000 --> so Excel can calculate how many text strings in there

    =LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1

    that formula count 3 as a result

    Regards
    Azumi

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Reverse finding matches to a number

    or

    =LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1),",",""))+1

    Azumi

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Reverse finding matches to a number

    Unfortunately I'm using Excel 2007 at work and therefore Solver is inaccessible.????? why is that then

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Reverse finding matches to a number

    Or just take a look to my files

    Azumi
    Attached Files Attached Files

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Reverse finding matches to a number

    azumi i think you are missing the point
    Attached Files Attached Files

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Reverse finding matches to a number

    Or

    In A1 Cell
    4500

    In B1 Cell

    =CEILING(A1*25%,500)

    In C1 Cell

    =CEILING(A1*20%,500)

    In D1 Cell

    =A1-SUM(B1:C1)

    Just for fun lol


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Need help with finding matches
    By bittersweets in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 05:25 AM
  2. Replies: 2
    Last Post: 04-06-2012, 04:00 PM
  3. Finding the sum of the matches between two ranges
    By dodger23 in forum Excel General
    Replies: 4
    Last Post: 03-19-2010, 05:06 PM
  4. Finding matches
    By Tziggy in forum Excel General
    Replies: 5
    Last Post: 12-09-2008, 02:01 PM
  5. Finding the total number of matches within two columns?
    By mikexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2007, 02:47 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