VBA to compare filtered list to another list

ChristineJ

Well-known Member
Joined
May 18, 2009
Messages
766
Office Version
  1. 365
Platform
  1. Windows
Column B has a list of names and column C has a corresponding amount for each name. The length of this list could vary.

Cell F3 contains one of the names, and below that a list of numbers. In this case there are four numbers typed in, but there could be more or fewer.

I'd like to use a VBA macro to return either "Yes" or "No" in cell F1. "Yes" should be returned if the number of amounts, and the values of those amounts, for Tom in column C match the amounts for Tom in column F, in the same order.

In other words, if column B were filtered for Tom, the list of amounts for Tom would be exactly the same as the list beginning in cell F4.

Is there a way to do this with VBA? Thanks!

filter.png
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,216,434
Messages
6,130,597
Members
449,584
Latest member
c_clark

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