Custom functionality for a column

GirishSharma

New Member
Joined
Sep 9, 2017
Messages
5
We have an excel sheet (version 2003) in which I have to enter the data of our customers, visitors, consultants etc. We get these data in different format from many sources like emails, whatsapp chat, facebook comments etc. The data which we collects is as under :
name, age, country, mobile no, email id, xtype

Till now, I have entered around 150 rows and now it seems that duplicate data may be entered, because there is no fixed format, sequence and sources of raw data; so before entering the data I need to search the mobile number in whole sheet and if it found it puts me there in the cell and if not finds, I come to know that these data must be entered.

So rather than searching by mobile number in the column of mobile number, I wish to get the functionality of mobile number column of the last row of sheet, if I enters a number and if it is exists in the sheet, control should be at name column of the row, and if not finds, control should be at the name column of last row by storing entered number, so that I may know, this is new entry.

Kindly ask me, if I am unclear and/or need more explanation please.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
is the mobile number always entered without spaces
you could use conditional formatting
so that the cell highlights if it finds a duplicate

using
countif(Mobile column, mobile column+1 ) ie if in column C =countif(C:C , C1)
 
Last edited:
Upvote 0
Mobile number is 10 char long value having all digits without any space and non numeric characters. Mobile number is just a name of column D in which I am storing the values for mobile numbers.
I am not getting what do you mean by your solution, kindly elaborate more.

Thanks.
 
Upvote 0
if you setup conditional formatting to highlight any duplicate numbers
using
=countif(D:D, D1) >1
when you enter a number that is already duplicated it will colour the cell you are entering the number in and also the cell where the duplicate exists
very simple solution
however if you need the sheet to take you to the actual cell , you probably are going to need some VBA code, which i dont do

for 2007, 2010 , 2013 or 2016 excel version
Conditional Formatting


Highlight applicable range >>

$D:$D



Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:



=countif(D:D, D1) >1



Format… [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Thank you. I will try and let you know, if I sticks at any point, but my requirement may be fulfilled by VBA though.

Thanks again for good info.
 
Upvote 0
I tried it on a test worksheet but it is not showing me duplicates. In D column I entered 1,2,3,4 and when I entered 1 in D5, it showed highlighted 3 and now D7 is also highlighted, bit confusing working.

Kindly help me to highlight duplicates correctly.
 
Upvote 0
Excel Workbook
ABCD
1phone
21
32
43
54
65
73
8
9
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D11. / Formula is =COUNTIF(D:D,D1)>1Abc
 
Upvote 0
Ok. I did not put "phone" word in D1, so may be this one is a reason, but it is still not a good solution for me, because what if there are more entries in the sheet and excel simply highlight with color, so I need to scroll up to see those duplicates (it is almost time consuming as search for the number), that's why I thought for a piece of VBA which will take me to the actual cell and if it not duplicate then I can find it a new entry, and now I have to enter rest data for this unique number.
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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