Results 1 to 4 of 4

Thread: Macro to Identify Amounts Based on Criteria Value

  1. #1
    Junior Member
    Join Date
    Sep 2015
    Posts
    6
    Rep Power
    0

    Macro to Identify Amounts Based on Criteria Value

    A B C D E F
    $10 5 5 8 5
    2 5 2 8
    -7.25 -3
    -2
    5
    8
    -3
    Hello,

    I have a criteria value ($10) that I need to find in column C or any combination of positive or negative numbers that equals to the criteria value. The data range in column C also has amounts that has decimals. The results should be displayed in the subsequent columns (D, E, F, etc). If there is only one combination that equal to the criteria value then obviously the results will be displayed in column D. The same number can be used in various combinations (see example above). Sometimes the criteria value can be found in column without any combination of numbers that sums to it, so that result should show in column D. I will likely not have results that extends to many many columns.

    Can someone help create this macro code.
    Last edited by showtyme; 01-31-2017 at 08:07 AM.

  2. #2
    Junior Member
    Join Date
    Sep 2015
    Posts
    6
    Rep Power
    0
    Quote Originally Posted by showtyme View Post
    A B C D E F
    $10 5 5 8 5
    2 5 2 8
    -7.25 -3
    -2
    5
    8
    -3
    Hello,

    I have a criteria value ($10) that I need to find in column C or any combination of positive or negative numbers that equals to the criteria value. The data range in column C also has amounts that has decimals. The results should be displayed in the subsequent columns (D, E, F, etc). If there is only one combination that equal to the criteria value then obviously the results will be displayed in column D. The same number can be used in various combinations (see example above). Sometimes the criteria value can be found in column without any combination of numbers that sums to it, so that result should show in column D. I will likely not have results that extends to many many columns.

    Can someone help create this macro code.
    The criteria value in the example is in cell A1.

  3. #3
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,066
    Rep Power
    10
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2013 on Win 7 (64 bit)

  4. #4
    Junior Member
    Join Date
    Sep 2015
    Posts
    6
    Rep Power
    0
    Quote Originally Posted by Admin View Post
    Thank you so much! Exactly what I was looking for.

Similar Threads

  1. HELP - Vlookup based on 2 criteria.
    By amar.kshirsagar in forum Excel Help
    Replies: 7
    Last Post: 01-24-2014, 04:46 PM
  2. Replies: 10
    Last Post: 08-29-2013, 08:50 PM
  3. Split data based on criteria
    By Mahesh.sreekakulam in forum Excel Help
    Replies: 3
    Last Post: 06-08-2012, 10:00 PM
  4. Lookup Based on Criteria
    By maruthi in forum Excel Help
    Replies: 2
    Last Post: 02-15-2012, 09:19 AM
  5. Find Value Based On Criteria
    By excel_learner in forum Excel Help
    Replies: 10
    Last Post: 07-30-2011, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •