Comparing Values 2 columns

Kerstin

New Member
Joined
Mar 9, 2017
Messages
5
Hi Guys

If I have two columns
Columns A contains 4 amounts
Column B contains 12 amounts
They both total the same
I need to figure out which ones in column B match up to which totals in Column A
Obviously I'm dealing with many more in each column, some are just two items matching a figure in A whilst others could be five items & they're often mixed up.
The colours are just to show what I'm needing but if a formula could return colours that would be awesome!
Can anybody help?
 

Attachments

  • Screenshot_20231205_233503_Excel-transformed.jpeg
    Screenshot_20231205_233503_Excel-transformed.jpeg
    76.7 KB · Views: 16

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
For a large number this will be unpractical.
Because you have to test 2^n posibilities. With n being the number of individual values you have in column C.
For different number you have:

Number n2^n
532
664
7128
8256
9512
101.024
201.048.576
301.073.741.824
401.099.511.627.776
501.125.899.906.842.620


So you can see that the different combinations to test on a larger number is too big.

Maybe you could do it with VBA, but i guess it will take a really long time with a large number of values.
 
Upvote 1
For a large number this will be unpractical.
Because you have to test 2^n posibilities. With n being the number of individual values you have in column C.
For different number you have:

Number n2^n
532
664
7128
8256
9512
101.024
201.048.576
301.073.741.824
401.099.511.627.776
501.125.899.906.842.620


So you can see that the different combinations to test on a larger number is too big.

Maybe you could do it with VBA, but i guess it will take a really long time with a large number of values.
 
Upvote 0
@Kerstin
For the future, please only mark a post as the solution if it does actually contain the solution to your question.
Clearly post #4 does not so I have removed the mark from that post.
 
Upvote 0

Forum statistics

Threads
1,224,801
Messages
6,181,047
Members
453,014
Latest member
Chris258

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