LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default format cell when a formula error occurs

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
Thanks Biff, that works well. I have even combined them so both things are
checked at the same time. I have now finally worked out how to use
conditional formatting effectively and have set it up so it formats the
cells
red if they are empty or duplicate for visual cues as well.

Thanks


"T. Valko" wrote:

vlookup("john smith",sheet2!A1:B10,2,False)


For the #N/A problem...

A1 = John Smith

=IF(COUNTIF(Sheet2!A$1:A$10,A1),VLOOKUP(A1,Sheet2! A$1:B$10,2,0),"")

That will return a blank.

For the duplicate name problem:

=IF(COUNTIF(Sheet2!A$1:A$10,A1)1,"Duplicate","Uni que")

--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
I have a worksheet with a list of rider names and rider id tag no. EG.


A B
John Smith 256987
Rod Brown 236478

In another worksheet I use a vlookup of the riders name to return there
id
tag number. ie. vlookup("john smith",sheet2!A1:B10,2,False)

This can fail for three reasons.

1. There are multiple people with the same name.
2. The name is spelt incorrectly
3. The name and tag id have not been entered in the original worksheet
(ie.
first time rider)

What I would like to do to help prevent reasons 2 and 3 from occuring
is
make the cell that the vlookup formula is in go red if it can't find a
tag
id
number (ie brings back #N/A).

Can this be done without vba.

I would also appreciate any ideas on checking for multiple riders with
the
same name. Once each occurence occurs the names would be changed (ie
initials
added or something along those lines) but it would be good to have a
check
to
make sure that when a first time rider comes along he does not have the
same
name as a rider currently on the list.

Thanks






 
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
counting no. of times a character occurs in a cell hsg Excel Worksheet Functions 3 March 24th 09 06:49 PM
How do I insert music into a formula for when a result occurs Bobh Excel Discussion (Misc queries) 3 July 27th 08 12:57 PM
#VALUE! error - Occurs when the wrong type of argument or operand Allan Excel Discussion (Misc queries) 1 February 20th 08 05:57 PM
MsgBox when an Error occurs Vick Excel Discussion (Misc queries) 1 December 21st 05 08:48 PM
How do I have a formula check if a value occurs within a range? afgncaap Excel Worksheet Functions 3 June 1st 05 06:44 PM


All times are GMT +1. The time now is 11:07 PM.

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

About Us

"It's about Microsoft Excel"