+ Reply to Thread
Results 1 to 3 of 3

Want excel to give a combination of a few different numbers with give same figure as sum

  1. #1
    Registered User
    Join Date
    06-29-2015
    Location
    Dubai
    MS-Off Ver
    2013
    Posts
    24

    Exclamation Want excel to give a combination of a few different numbers with give same figure as sum

    CUSTOMER NAME JOB NO DOCUMENT NO DOCUMENT DATE CURRENCY CODE LOCAL AMOUNT DR CR DUE DAYS
    AAA COMPANY TE-150621620080-1 OLT-INV-50621620297 27-Jun-2015 AED 35.00 D 4
    AAA COMPANY TE-150521620149-1 OLT-INV-50621620132 13-Jun-2015 AED 17.00 D 18
    AAA COMPANY TE-150421620208-1 OLT-INV-50521620268 31-May-2015 AED 20.00 D 31
    AAA COMPANY TE-150521620008-1 OLT-INV-50521620263 31-May-2015 AED 14.00 D 31
    AAA COMPANY TE-150521620018-1 OLT-INV-50521620194 23-May-2015 AED 24.00 D 39
    AAA COMPANY TE-150421620272-1 OLT-INV-50521620193 23-May-2015 AED 29.00 D 39
    AAA COMPANY TE-150521620027-1 OLT-INV-50521620173 23-May-2015 AED 27.00 D 39
    AAA COMPANY TE-150421620239-1 OLT-INV-50521620070 10-May-2015 AED 19.00 D 52
    AAA COMPANY TE-150421620219-1 OLT-INV-50521620067 10-May-2015 AED 44.00 D 52
    AAA COMPANY TE-150421620167-1 OLT-INV-50421620361 28-Apr-2015 AED 16.00 D 64
    AAA COMPANY TE-150421620133-1 OLT-INV-50421620337 27-Apr-2015 AED 15.00 D 65
    AAA COMPANY TE-150421620118-1 OLT-INV-50421620255 22-Apr-2015 AED 1.00 D 70

    Refering to the above data as an example, assume that this is the invoice details of my company to another company AAA comapany.

    I got cheque for amount Aed 36.00 from customer(assuming the customer didnt give invoice details), whether excel can give the possible combinations that the sum of amounts on column "Local amount will give this amount" that will match 36?
    Say if 36 is the amount then it can be (a) either 35+1 or (2)19+17 or (3) 20+16
    It am looking working like Excel can hint it either a combination or some highlighting etc


    This is a small range, but if it is big, it becomes complicated and time consuming. Is there any formula or function we can use to easily find this? See Attachment cheque amount against invoice amounts.xlsx

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Want excel to give a combination of a few different numbers with give same figure as s

    My proposition - write your 36 in say J1, then in J2 and copy down formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    note that for half of amount (18) in one of rows it can find the same row twice
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Want excel to give a combination of a few different numbers with give same figure as s

    Zeszyt more than 2 up to 4.xlsm

    It occurred to me that you may have more than 2 invoices that when added together match the target value. run the attached macro (see file attached) to get combinations of up to 4 invoices that match the target. You can experiment by adding extras but just add some text to column b so it knows which ones to test for.
    Happy with my advice? Click on the * reputation button below

+ 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. complete five different calculations and give a total figure at the end
    By batchjb69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2015, 10:11 AM
  2. Combination of numbers that give a single total
    By Jorgeewa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2014, 02:22 AM
  3. Replies: 2
    Last Post: 11-27-2014, 02:26 PM
  4. Copy figure from xls to ppt give format problem
    By Osing000 in forum Excel General
    Replies: 0
    Last Post: 11-23-2009, 05:48 AM
  5. Give RELEVANT responses to questions. DO NOT give usless list
    By pmartin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2006, 02:00 PM

Tags for this Thread

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