Highlight/show cells if sum matches X

KrsOne20

New Member
Joined
Dec 5, 2014
Messages
21
I have a column with multiple values (thats my range). In this range I want to see which cells by sum match X. At the moment I use trial and error (manual selecting cells to see if they match X), but it is too time consuming. I tried searching on the internet, but I get the wrong results.

Example
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Product A
[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]Product B[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Product C[/TD]
[TD]900[/TD]
[/TR]
</tbody>[/TABLE]

X = 1500. I need to find which cells match 1500, here it's product A + product B. What do I need to use, scenaria-analysis or what-iff model or does it need VBA? Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Solver works:


Excel 2010
ABCDE
1Numbers
2780130
3310
4370
5580
6350
7250
8450
9330
10280
11101
12740
13260
14380
15461
16830
17290
18620
19890
20741
21530
Sheet1
Cell Formulas
RangeFormula
E2=SUMPRODUCT($A$2:$A$21,$B$2:$B$21)


A3F5yD1.png
 
Upvote 0
Awesome, thanks for the fast reply! I tried and it works. If I have more questions or run any problems I will ask them here
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top