+ Reply to Thread
Results 1 to 2 of 2

Multiple Cells values - formula to see which cells added together equal zero?

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2003
    Posts
    1

    Multiple Cells values - formula to see which cells added together equal zero?

    Say I have 20 cells all with different number values plus and minus, is there a way I can select all of them and have a formula highlights which highlights which of these values when added/deducted equals zero?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Multiple Cells values - formula to see which cells added together equal zero?

    I doubt you could do this with a formula, you could have your 20 cells in A1:A20, then in B1:B20 put:
    =RANDBETWEEN(0,2)
    and in A21 put:
    =SUM(IF(B1:B20=1,A1:A20,IF(B1:B20=2,-A1:A20,0)))
    as an array formula (confirm with ctrl+shift+enter)
    then run this macro:
    Please Login or Register  to view this content.
    This would find you one solution by trial and error, set your maximum iterations (20000 in my code) as neccessary. I'm not sure what you want to happen if there are several solutions...

+ 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. Making multiple cells equal to other cells
    By forrestcupp in forum Excel General
    Replies: 5
    Last Post: 12-31-2013, 03:19 PM
  2. [SOLVED] Ignore If Blank & check multiple cells for equal values
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-25-2013, 04:46 AM
  3. Replies: 3
    Last Post: 10-10-2012, 06:37 AM
  4. Replies: 1
    Last Post: 06-07-2012, 07:05 AM
  5. [SOLVED] make multiple cells in 1 worksheet equal multiple cells in another
    By riley454 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2006, 11:10 AM

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