Find the text and copy the next column value to sheet 2

Pratap 1987

Board Regular
Joined
Feb 28, 2011
Messages
95
Hi,
I have a workbook with two sheets.

Sheet 1 : -

Column A - Has a list of account numbers with 5 to 9 digits (Maxinum 5 account numbers)

Column B - Has the count of pending items next to the respective account numbers

Sheet 2 : -

Column L - Has the list of five account numbers as below : -
414444 (In L29)
878664 (In L30)
693195777 (In L31)
42322 (In L32)
565991 (In L33)

Column N - Should reflect the count of the respective account number available in Sheet 1. And if the account number is not available in sheet 1 - the count should be reflected as '0' (Zero).

Could some one help me out in getting a Macro for the above requirement.

Thanks,
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi,

Thanks for your immediate response.

But, however I did not want the count of the account numbers in Column A (Sheet 1) to be reflected in sheet2.
Instead I want the Value available in the cell (From Column B - Sheet 1) next to the account number to be reflected in Sheet 2 (N Column) corresponding to the account number.

Sorry for not making you clear at the first shot.

Also, it would be great if you could get me a Marco. Because, the workbook is automated with few other macros. And the formula in the cell gets deleted once I run the automated Macro.
Thanks,
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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