+ Reply to Thread
Results 1 to 2 of 2

Highlight combination of cells in Excel whose sum totals are closest to a given number.

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    1

    Highlight combination of cells in Excel whose sum totals are closest to a given number.

    Hi, I'm trying to plan my purchases for Black Friday so I'm trying to create an automated spreadsheet to help me buy as many items as I can under a budget, therefore I'm trying to figure out how I can create a formula to highlight my cell's sums that add up closest to my given budget. I have already written the items and their corresponding market price, discounted price, and total savings along with my budget. Any help in pointing me in the right direction is appreciated, thanks.
    Edit: Also apologies, I might have accidentally posted in the wrong forum.
    example.xlsx
    Last edited by ANiceGuy; 11-22-2022 at 05:20 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Highlight combination of cells in Excel whose sum totals are closest to a given number

    I've moved this to Formulas & Functions - if you want VBA, then just say and I'll move it again.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Best Combination with Smallest Sum of Values with Sumproduct Closest to Target
    By capsule in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2021, 12:08 PM
  2. Formula to find closest combination of numbers ...
    By 951Michael in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2019, 04:09 PM
  3. Replies: 15
    Last Post: 05-17-2019, 04:37 PM
  4. [SOLVED] Formula combination that distinguishes cells based on category then returns their totals
    By TitansGo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2015, 01:11 PM
  5. [SOLVED] How do i highlight a cell that is the closest number to a different cell.
    By dbravo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2014, 03:59 PM
  6. use vba to highlight closest number match
    By Toidz77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2009, 12:55 PM
  7. WHAT COMBINATION OF A SET OF NUMBERS COMES CLOSEST TO A FIXED NUMB
    By RED in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2005, 02:06 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