Last 4 digits in different columns

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Excel 365

Last 4 digits of Account numbers in different columns

My worksheet contains Account numbers in numericals in
columns B, G and T.

My requirement: For example, last 4 digits of 2372 is in B36, G52 and
T156. I want a formula to show me the cell references
like B36, G52 and T156 if I search for last 4 digits
with 2372. Is it possible to do this with helper for searching?

How to do this with formula? Thanking you.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I don't have the exact answer you are looking for, but another alternative (and since no one else has responded yet, I will post it here).

You could use Conditional Formatting to highlight the values meeting your criteria.
For example, let's say that the value you want to search for is in cell A1. To highlight the instances in column B where the last four digits of the entry match the value in cell A1, select column B and enter this Conditional Formatting formula:
Excel Formula:
=RIGHT(B1,4)=TEXT($A$1,"0000")
and then choose your desired formatting option (i.e. color fill).

Then, you would just repeat this process for the other two columns, and it should highlight all values in those three columns meeting that critiera.
 
Upvote 0
Note if you truly want a solution that returns cell addresses, the only way I can think of how to do that is via VBA (there may be a formulaic solution too, but it is beyond my level of formula-expertise!).

If you would like to see this VBA solution, please provide us with the following details:
1. Where this 4 digit value that you want to check for exists (in some certain cell, being asked for via an Input, etc)?
2. Where you want the results (cell addresses) to appear (in some cell, in a MsgBox, etc)?
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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