• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need Search & Highlight Formula with conditions...!

Jeet

New Member
Hello Everyone..!

I need a solution for the 3 problems which I have mentioned here with detailed Step by Step procedure of the whole process & conditions to be fulfilled.

I would like to find a formula that searches for any three digits match from the given Input set cells in database columns, and then highlights the cells in column so it can be cut and inserted in a new location.

Kindly check it & help me in solving this.


Problem No.1:

Total Database Size is “ $A$1:$I$1000 ” (9 columns & 1000 rows)

The Input cells with search values are located as follows:

A1001= 5721 Input 1

A1002= 2446 Input 2


Step 1:

Take A1001’s value (5721) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If no match found then stop searching

Step 2:

If any 3 digits match found for the Input 1, A1001’s value then,

Check the value of the cell below the match found cell

Example: if the Input 1’s 3 digits match was found in a cell A24 then check the value of the cell below it, which is A25.

Check if it’s having any 3 digits from the Input 2, A1002’s value (2446)

If yes then highlight the two cells (i.e.) A24 & A25.

If no match found then stop searching.

Note:

Let’s take Input A1001= 5721 value as example.

Now what I mean by search any 3 digits match is

The formula has to find the cell (from$A$1:$I$1000) which have any 3 digits from A1001 (5721)

i.e.) any cell (from$A$1:$I$1000) having the following set of digits in it

(5, 7, 2) (5, 7, 1) (7, 2, 1) (5, 2, 1)

==========================================================


Problem No.2:

Total Database Size is “ $A$1:$I$1000 ” (9 columns & 1000 rows)

The Input cells with search values are located as follows:

A1001= 5721; B1001= 6067; C1001= 8901 <== Input Set 1

A1002= 2446; B1002= 3549; C1002= 5401 <== Input Set 2

In this Problem 2 more Input values are added in each Input set.

The Output order should not be changed:

Top cell value must have any 3 digit match from Input set 1 (A1001/B1001/C1001)

Bottom cell value must have any 3 digit match from Input set 2 (A1002/B1002/C1002)


Step 1:

Take A1001’s value (5721) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If No match found then take B1001’s value (6067) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If No match found then take C1001’s value (8901) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If no match found for all three Input set 1 (A1001, B1001, C1001) then stop searching

Step 2:

If any 3 digits match found for the Input set 1’s (A1001 or B1001 or C1001) value then,

Check the value of the cell below the match found cell

Example: if the Input set 1’s 3 digits match was found in a cell A24 then check the value of the cell below it, which is A25.

Check if it’s having any 3 digits from the Input set 2’s A1002’s value (2446)

If yes then highlight the two cells (i.e.) A24 & A25.

If No match found then take B1002’s value (3549) and check if it’s having any of its 3 digits matched.

If yes then highlight the two cells (i.e.) A24 & A25.

If No match found then take C1002’s value (5401) and check if it’s having any of its 3 digits matched.

If yes then highlight all the two cells (i.e.) A24 & A25.

If no match found for Input set 2 (A1002, B1002, C1002) then stop searching



In short the cells A24 & A25 are highlighted because:

A24 value – is having any 3 digits matched from Input set 1’s value

A25 value – is having any 3 digits matched from Input set 2’s value

==========================================================

Problem No.3:

Total Database Size is “ $A$1:$I$1000 ” (9 columns & 1000 rows)

The Input cells with search values are located as follows:

A1001= 5721; B1001= 6067; C1001= 8901 <== Input Set 1

A1002= 2446; B1002= 3549; C1002= 5401 <== Input Set 2

A1003= 8321; B1003= 3250; C1003= 9936 <== Input Set 3

In this Problem 1 more Input Set is added.


The Output order should not be changed:

Top cell value must have any 3 digit match from Input set 1 (A1001/B1001/C1001)

Middle cell value must have any 3 digit match from Input set 2 (A1002/B1002/C1002)

Bottom cell value must have any 3 digit match from Input set 3 (A1003/B1003/C1003)


Step 1:

Take A1001’s value (5721) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If No match found then take B1001’s value (6067) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If No match found then take C1001’s value (8901) and check if any cell from $A$1:$I$1000 having any of its 3 digits matched.

If yes then Proceed with Step 2.

If no match found for all three Input set 1 (A1001, B1001, C1001) then stop searching

Step 2:

If any 3 digits match found for the Input set 1’s (A1001 or B1001 or C1001) value then,

Check the value of the cell below the match found cell

Example: if the Input set 1’s 3 digits match was found in a cell A24 then check the value of the cell below it, which is A25.

Check if it’s having any 3 digits from the Input set 2’s A1002’s value (2446)

If yes then Proceed with Step 3.

If No match found then take B1002’s value (3549) and check if it’s having any of its 3 digits matched.

If yes then Proceed with Step 3.

If No match found then take C1002’s value (5401) and check if it’s having any of its 3 digits matched.

If yes then Proceed with Step 3.

If no match found for all three Input set 2 (A1002, B1002, C1002) then stop searching


Step 3:

If the Input set 1 and Input set 2’s match found

Example:

Let’s Assume that any one of the 3 digits from 1st Input (A1001, B1001, C1001) matched in cell A24 and any one of the 3 digits from 2nd Input (A1002, B1002, C1002) matched in A25 then check the value of the cell below it, which is A26.

Check if it’s having any 3 digits from the Input set 3 A1003’s value (8321)

If yes then highlight all the three cells (i.e.) A24 & A25 & A26.

If No match found then take B1003’s value (3250) and check if it’s having any of its 3 digits matched.

If yes then highlight all the three cells (i.e.) A24 & A25 & A26.

If No match found then take C1003’s value (9936) and check if it’s having any of its 3 digits matched.

If yes then highlight all the three cells (i.e.) A24 & A25 & A26.

If no match found for all three Input set 3 (A1003, B1003, C1003) then stop searching


In short the three cells A24 & A25 & A26 are highlighted because:

A24 value – is having any 3 digits matched from Input set 1’s value

A25 value – is having any 3 digits matched from Input set 2’s value

A26 value – is having any 3 digits matched from Input set 3’s value

=========================================================

Many Thanks in Advance & Regards,
Jeet
 
Hi Excel Ninja's & other members.

I sincerely request to look at the problem mentioned above & provide you support in solving it.

Any help on this problem would be greatly appreciated!


Many Thanks in Advance & Regards,
Jeet
 
Last edited:
Hi, Jeet!

Are you very hurried? If so please take a break and dedicate 5 minutes to what follows. Posting without adding any useful information just for bumping up a topic doesn't guarantee neither a faster assistance nor getting the interest of people who might be reading that post, but rather the opposite effect of discouraging them.

If you'd have read the 1st forum at the main page...
http://chandoo.org/forum/forums/new-users-please-start-here.14/
...you should have noticed this points (and if you did it seems as if you should do it again):

"Consider that the world is operating 24hrs a day. A late post today may well be answered by someone else overnight."

"If you and a reader have been involved in an ongoing conversation and the conversation suddenly stops, recognize that the person may have gone to bed, even though you have just arrived at work. In the worst case a reader may go on holidays and not get back to the question for a few days."

"Never title your posts as "Urgent", "Priority" "Immediate". It may be Important to you, but not for rest of the members here. These words will be moderated out."

"Say "Thanks", whenever you can. Recognize when someone has bothered to go to the trouble and time to assist you with your question for free. Often readers will spend several hours working on a solution to a problem, a line of recognition will go a long way."

Regards!

PS: If it's a high priority issue and you can't even wait... how much?... oh, 22 hours and a while... you always have the alternative of hiring a local consultant who may provide you the exact tailored service. Should I remember you that these forums are supported by contributors who dedicate part of their time in an absolutely free way to help other people and answer questions?
 
Last edited:
Dear SirJB7

I have read the 1st forum & noted all the points..!

Also, I Never titled my posts as "Urgent", "Priority" or "Immediate".

As you can see i have stated " I sincerely request " n i dunno what's wrong in this..!

Anyway if you think my post has violated any of the forum rules then i am sorry..!

Thanks for your advice
Regards,
Jeet
 
Dear Kanti

NO, i didn't post this thread before..!

So far i have posted 3 Threads (including this one).

And am really grateful to the members who have helped & guided me in getting the result for 2 Threads.

Many Thanks & Regards,
Jeet
 
Back
Top