#1   Report Post  
Eric
 
Posts: n/a
Default Matching

Dear all,

I'm working on a situation for making a rooming list, people sharing room.

I've around 60 classmate and some of them are going to share room with the
classmate. They change their mind so frequent, is annoying

I want to see how i can managed the change without any hassle.

I made use of their student number, then using vlookup to conver them into
real name.

For example;

Student number /Name
123 999 Eric Mary

When i type 123 in Col 1, col 3 show "Eric", type 999 in Col 2, col 4 show
"Mary". So, i know they are sharing the room.

But how can i alert the next entry , i can not type 999 again, as Mary has a
room mate already ?!

Can anyone help.. as when you deal with a list of 90 undecisive classmates

thanks
Eric




  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

I came up with 2 ways to handle your situation:

(Assuming entries are in Cells A1:B???)
This one allows you to enter duplicate Student IDs, but flags them with a
colored cell background:
1)Select the Input Range
2)FormatConditional Formatting
3)Formula Is: =SUMPRODUCT(--($A$1:$B1=A1)*(A1<""))1
Format: ( I set the cell background color to bright yellow)
Click [OK]

This one prevents the entry of a duplicate Student ID:
1)Select the Input Range
2)DataValidationCustom
3)Formula: =SUMPRODUCT(--($A$1:$B1=A1)*(A1<""))=1
Click OK

Does that help?
--
Regards,
Ron

  #3   Report Post  
Eric
 
Posts: n/a
Default

Ron,

I'm sorry, i'm too green to know the tick....i tried but unable to work it
out.

Eric


"Ron Coderre" ¦b¶l¥ó
¤¤¼¶¼g...
I came up with 2 ways to handle your situation:

(Assuming entries are in Cells A1:B???)
This one allows you to enter duplicate Student IDs, but flags them with a
colored cell background:
1)Select the Input Range
2)FormatConditional Formatting
3)Formula Is: =SUMPRODUCT(--($A$1:$B1=A1)*(A1<""))1
Format: ( I set the cell background color to bright yellow)
Click [OK]

This one prevents the entry of a duplicate Student ID:
1)Select the Input Range
2)DataValidationCustom
3)Formula: =SUMPRODUCT(--($A$1:$B1=A1)*(A1<""))=1
Click OK

Does that help?
--
Regards,
Ron



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
Find Matching Records in Two Worksheets kittybat Excel Discussion (Misc queries) 2 April 5th 05 06:51 PM
Find matching records in two worksheets kittybat Excel Discussion (Misc queries) 3 March 30th 05 12:11 AM
Matching an Array in one Tab with an Array with another Tab LanceMSU Excel Worksheet Functions 4 February 22nd 05 02:16 AM
Matching cells gcotterl Excel Discussion (Misc queries) 1 February 1st 05 10:32 PM
Formula for Searching & matching two values in excel Chris Excel Discussion (Misc queries) 1 January 7th 05 04:34 PM


All times are GMT +1. The time now is 10:33 AM.

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"