Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

checking for Match

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig - 10 May 2008 02:52 GMT
Hi there, I would like to use a function that would look at a number in D1,
check to see if it exist in range A1: A8, if the number does exist then
display the D1 number in the formula cell, else display the number 1.

       If Number exist!

       A B C D E
     1 5     25
     2 9
     3 25   Formula>  25
     4 1
     5 15
     6 8
     7 3
     8 5

If Number does not exist!
       A B C D E
     1 5     11
     2 9
     3 25   Formula>  1
     4 1
     5 15
     6 8
     7 3
     8 5

Thank You for any Help!

Craig
Jim Cone - 10 May 2008 03:45 GMT
=IF(ISERROR(MATCH(D1,A1:A8,0)),1,D1)
Signature

Jim Cone
Portland, Oregon  USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"Craig" <my-place@shaw.ca>
wrote in message
Hi there, I would like to use a function that would look at a number in D1,
check to see if it exist in range A1: A8, if the number does exist then
display the D1 number in the formula cell, else display the number 1.
       If Number exist!

       A B C D E
     1 5     25
     2 9
     3 25   Formula>  25
     4 1
     5 15
     6 8
     7 3
     8 5

If Number does not exist!
       A B C D E
     1 5     11
     2 9
     3 25   Formula>  1
     4 1
     5 15
     6 8
     7 3
     8 5

Thank You for any Help!
Craig

Craig - 10 May 2008 05:19 GMT
Thanks.... exactly what I was looking for!
Craig

> =IF(ISERROR(MATCH(D1,A1:A8,0)),1,D1)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.