Two column value reconciliation comparison function.

shaokui123

Spammer
Joined
Mar 14, 2021
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
我是一名金融工作者,经常需要用到两列值对账比较功能。如图,a列和C列需要得到它们独立求和的最大等值。颜色是我手工检查的,但难免有疏漏,希望高手能用VBA来实现。请注意,每个值只能使用一次。

请帮忙。
微信截图_20210721093653.png




1000​
10500
1700​
13899
1000​
6750
430​
770
700​
8846
490​
3980
10​
21745
1350​
756​
5000​
14903​
5000​
3900​
800​
3196​
4000​
770​
3900​
14160​
5639​
2799​
650​
800​
8500​
769​
6878​
2000年​
14903​
3900​
1199​
480​
756​
300​
10000​
4000​
3799​
2950​
450​
2000年​
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
[范围=rs:36|cs:3|w:bj.xlsx|cls:xl2bb-200|s:Sheet1|tw:162][XR][XH][/XH][XH=w:54]A[ /XH][XH=w:54]B[/XH][XH=w:54]C[/XH][/XR][XR][XH]1[/XH][XD=v:m|ch :15]1000[/XD][XD][/XD][XD=v:m|bc:92D050|c:555555|ff:ari|fz:9pt|cls:br bb ww]10500[/XD][ /XR][XR][XH]2[/XH][XD=v:m|ch:15]1700[/XD][XD][/XD][XD=v:m|bc:FAFAFA|c: 333333|ff:ari|fz:9pt|cls:br bb ww]13899[/XD][/XR][XR][XH]3[/XH][XD=v:m|ch:15]1000[/ XD][XD][/XD][XD=v:m|c:555555|ff:ari|fz:9pt|cls:br bb ww]6750[/XD][/XR][XR][XH]4 [/XH][XD=v:m|ch:15]430[/XD][XD][/XD][XD=v:m|bc:FAFAFA|c:333333|ff:ari|fz:9pt| cls:br bb ww]770[/XD][/XR][XR][XH]5[/XH][XD=v:m|ch:15]700[/XD][XD][/XD][ XD=v:m|bc:FFFF00|c:555555|ff:ari|fz:9pt|cls:br bb ww]8846[/XD][/XR][XR][XH]6[/XH][XD =v:m|bc:92D050|ch:15]490[/XD][XD][/XD][XD=v:m|bc:FAFAFA|c:333333|ff:ari|fz:9pt|cls: br bb ww]3980[/XD][/XR][XR][XH]7[/XH][XD=v:m|bc:92D050|ch:15]10[/XD][XD][/XD][XD=v:m|c:555555|ff:ari|fz:9pt|cls:br bb ww]21745[/XD][/XR][XR ][XH]8[/XH][XD=v:m|ch:14.25]1350[/XD][XD][/XD][XD=v:m|fz:12pt]756[/XD][/ XR][XR][XH]9[/XH][XD=v:m|ch:14.25]5000[/XD][XD][/XD][XD=v:m|fz:12pt]14903[/ XD][/XR][XR][XH]10[/XH][XD=v:m|ch:10.5]5000[/XD][XD][/XD][XD=v:m|fz:12pt ]3900[/XD][/XR][XR][XH]11[/XH][XD=v:m|ch:10.5]800[/XD][XD][/XD][XD][/XD ][/XR][XR][XH]12[/XH][XD=v:m|ch:10.5]3196[/XD][XD][/XD][XD][/XD][/XR] [XR][XH]13[/XH][XD=v:m|ch:10.5]4000[/XD][XD][/XD][XD][/XD][/XR][XR][XH ]14[/XH][XD=v:m|ch:10.5]770[/XD][XD][/XD][XD][/XD][/XR][XR][XH]15[/XH ][XD=v:m|ch:10.5]3900[/XD][XD][/XD][XD][/XD][/XR][XR][XH]16[/XH][XD=v :m|ch:10.5]14160[/XD][XD][/XD][XD][/XD][/XR][XR][XH]17[/XH][XD=v:m|ch: 10.5]5639[/XD][XD][/XD][XD][/XD][/XR][XR][XH]18[/XH][XD=v:m|ch:10.5]2799[/ XD][XD][/XD][XD][/XD][/XR][XR][XH]19[/XH][XD=v:m|ch:10。5]650[/XD][XD][/XD][XD][/XD][/XR][XR][XH]20[/XH][XD=v:m|ch:14.25]800[/ XD][XD][/XD][XD][/XD][/XR][XR][XH]21[/XH][XD=v:m|ch:14.25]8500[/XD][XD] [/XD][XD][/XD][/XR][XR][XH]22[/XH][XD=v:m|bc:FFFF00|ch:14.25]769[/XD][XD][ /XD][XD][/XD][/XR][XR][XH]23[/XH][XD=v:m|bc:FFFF00|ch:14.25]6878[/XD][XD][/ XD][XD][/XD][/XR][XR][XH]24[/XH][XD=v:m|ch:14.25]2000[/XD][XD][/XD][XD] [/XD][/XR][XR][XH]25[/XH][XD=v:m|ch:14.25]14903[/XD][XD][/XD][XD][/XD][ /XR][XR][XH]26[/XH][XD=v:m|ch:14.25]3900[/XD][XD][/XD][XD][/XD][/XR][XR ][XH]27[/XH][XD=v:m|bc:FFFF00|ch:14.25]1199[/XD][XD][/XD][XD][/XD][/XR][XR] [XH]28[/XH][XD=v:m|ch:14.25]480[/XD][XD][/XD][XD][/XD][/XR][XR][XH]29[ /XH][XD=v:m|ch:14.25]756[/XD][XD][/XD][XD][/XD][/XR][XR][XH]30[/XH][XD =v:m|ch:14.25]300[/XD][XD][/XD][XD][/XD][/XR][XR][XH]31[/XH][XD=v:m| bc:92D050|ch:14.25]10000[/XD][XD][/XD][XD][/XD][/XR][XR][XH]32[/XH][XD=v:m|ch:14.25]4000[/XD][XD][/XD][XD][/XD][/XR][XR][XH]33[/XH][XD=v:m|ch:14.25 ]3799[/XD][XD][/XD][XD][/XD][/XR][XR][XH]34[/XH][XD=v:m|ch:14.25]2950[/XD ][XD][/XD][XD][/XD][/XR][XR][XH]35[/XH][XD=v:m|ch:14.25]450[/XD][XD][ /XD][XD][/XD][/XR][XR][XH]36[/XH][XD=v:m|ch:14.25]2000[/XD][XD][/XD][XD ][/XD][/XR][/范围]
 
Upvote 0
1000 10500
1700 13899
1000 6750
430 770
700 8846
490 3980
10 21745
1350 756
5000 14903
5000 3900
800
3196
4000
770
3900
14160
5639
2799
650
800
8500
769
6878
2000
14903
3900
1199
480
756
300
10000
4000
3799
2950
450
2000
 
Upvote 0

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,646
Latest member
tudou

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