Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:01 
User avatar

Joined: 27th Mar, 2008
Posts: 14497
Hello!

I'm trying to use Excel to do something at work, but I'm really shit at it.

My problem is this:

I've got a big list of words (over 1000) in a column, and I'm adding more to the same column. I want Excel to flag up if I repeat a word in the column that has already been typed in further up. I'm guessing it's some sort of if statement, telling it to change colour if I repeat a word, but I'm buggered if I know what to do.

Any ideas? Ta chaps!


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:04 
User avatar
baron of techno

Joined: 30th Mar, 2008
Posts: 24136
Location: fife
That's.. kind of a databasey thing to be honest. I don't know how you'd do it in excel sorry. A quick solution might be perl or basic, just store the strings in an array and search it against the new one.


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:05 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
Which version of Excel? If it's 2007 the attached file does it. If it's earlier, I think we need to be more creative.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:06 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69725
Location: Your Mum
I'm not that good with excel, but you could use a count if in your B column (assuming the words are in the A column).

Code:
=IF(COUNTIF($A$1:A15,A10)=0,"","Repeated")


That is for cell B16. It reads cell A16 and checks A1-A15 for the same thing. You might not need the second bang.

[edit]Why the fuck am I using bangs? It's early. The above works fine.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:12 
User avatar
Ticket to Ride World Champion

Joined: 18th Apr, 2008
Posts: 11902
Can you sort them? if you can, you can sort and then say =if(A2=A1, "Same", "") then copy that all the way down.

_________________
No, it was a giant robot castle!


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:14 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69725
Location: Your Mum
Bobbyaro wrote:
Can you sort them? if you can, you can sort and then say =if(A2=A1, "Same", "") then copy that all the way down.

Well, then you might as well just use a unique records filter.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:16 
User avatar

Joined: 27th Mar, 2008
Posts: 14497
Doctor Glyndwr wrote:
Which version of Excel? If it's 2007 the attached file does it. If it's earlier, I think we need to be more creative.


You beautiful man! That'll do the job, shame about the horrible pinky colour :D

Thanks everyone!


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:39 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
jonarob wrote:
You beautiful man! That'll do the job, shame about the horrible pinky colour :D

Click the column header. Select the Home tab. Select "Conditional Formatting" | "Highlight Cells Rules" | "Duplicate Values". Choose a different colour scheme from the drop-box.

This is a genuinely new and useful feature in Excel 2007.


Top
 Profile  
 
 Post subject: Re: Excel Question of tedium
PostPosted: Thu Mar 26, 2009 11:42 
User avatar
Sleepyhead

Joined: 30th Mar, 2008
Posts: 27354
Location: Kidbrooke
Doctor Glyndwr wrote:
jonarob wrote:
You beautiful man! That'll do the job, shame about the horrible pinky colour :D

Click the column header. Select the Home tab. Select "Conditional Formatting" | "Highlight Cells Rules" | "Duplicate Values". Choose a different colour scheme from the drop-box.

This is a genuinely new and useful feature in Excel 2007.


It sure frikkin' is! I manage a spreadsheet where it needs to colour a cell based on a bundle of parameters, and the old conditional formatting tool is shite enough that I had to learn a bunch of VB code to get it to do what I wanted.

Now I can do most things with the conditional formatting tool. Woohoo!

_________________
We are young despite the years
We are concern
We are hope, despite the times


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Columbo, KNIGHTS TEMPLAR, markg, Vogons and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
cron
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC. RIP, Dimmers.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.