VBA Code - Find Match between two sheets with another conditional match and write in result of 'YES'

MHamid

Active Member
Joined
Jan 31, 2013
Messages
472
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello,

I'm hoping someone can lead me into the right direction.

I have a main sheet called "MAIN" and a source data sheet called "IssueTool".
The "Main sheet has unique account numbers in column J and the "IssueTool" has duplicated account numbers with a year in column F (there are also multiple account numbers within a cell separated by a semicolon. I am trying to figure out a vba code that will match the account numbers. Once the account number is a match in the "IssueTool" sheet, then if the data in column I "Code1" shows the word 'Accepted', then I need to go back into the "Main" sheet and in column AV (Code1) the result should be a 'YES'. If not, then leave blank. If there is no account number in the "IssueTool" sheet, then leave cell blank. The same will be done for all other Code columns and looped for each account number in the "Main" Sheet.

Process:
1. Search for account number from "Main" sheet in "IssueTool" sheet
2. If 'Accepted' is found within the Code columns I thru O in the "IssueTool", then mark as 'YES' is the "Main" sheet respective Code columns AV thru BB ... If not accepted or account number is not found, then leave blank.


Main Sheet:
1654620363750.png


IssueTool:
1654620404758.png



Thank you,
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

Does anyone have any advise?

Thank you,
 
Upvote 0
Hello,

Does anyone one have any ideas on my post from June 7th?
 
Upvote 0
Hello,

Just checking in one more to see if anyone has any advice.

Any ideas??
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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