Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Identify text nums in scrambled fashion

All nums are text nums

In A1:A3 would be 3 "winning" 4-digit text numbers, eg:

0044
1234
4233

In C1 down will be input 4 digit text nums such as:

0440
4120
2343
3324
etc

If the text nums in C1 down happen to contain the same 4 digits as in any of
the 3 winners in A1:A3, then to indicate an "x" in adjacent col D (otherwise
just leave it blank)

For the sample data, the results in col D would be:

0440 - x
4120
2343 - x
3324 - x

I'm game for any formula, udf or vba solution which can do the above
Insights welcomed. Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Identify text nums in scrambled fashion

Try this...

Assuming there are no empty cells within the range A1:A3.

In the formula, Nums refers to the range A$1:A$3.

Entered in D1 and copied down as needed:

=IF(FREQUENCY(LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE (SUBSTITUTE(Nums,MID(C1,1,1),"",1),MID(C1,2,1),"", 1),MID(C1,3,1),"",1),MID(C1,4,1),"",1)),0),"x","")

--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
All nums are text nums

In A1:A3 would be 3 "winning" 4-digit text numbers, eg:

0044
1234
4233

In C1 down will be input 4 digit text nums such as:

0440
4120
2343
3324
etc

If the text nums in C1 down happen to contain the same 4 digits as in any
of the 3 winners in A1:A3, then to indicate an "x" in adjacent col D
(otherwise just leave it blank)

For the sample data, the results in col D would be:

0440 - x
4120
2343 - x
3324 - x

I'm game for any formula, udf or vba solution which can do the above
Insights welcomed. Thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Identify text nums in scrambled fashion

Brilliant, Biff. Works great
Many thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Identify text nums in scrambled fashion

You're welcome, Max.

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
Brilliant, Biff. Works great
Many thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you turn on the count nums when filtering in excel? SEIU Excel Discussion (Misc queries) 0 April 20th 07 02:16 PM
Combining words and nums. Eddie Excel Worksheet Functions 2 August 4th 06 03:54 PM
killing empty spaces in unusall fashion .. Mhz New Users to Excel 10 July 15th 06 10:50 PM
Have column of nums, need qty of each? samckitt Excel Worksheet Functions 3 April 2nd 06 06:15 PM
When I import a csv file text that contained a + gets scrambled HartfordBA Excel Discussion (Misc queries) 0 January 5th 06 02:43 PM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"