+ Reply to Thread
Results 1 to 3 of 3

seach and match to give result

  1. #1
    Registered User
    Join Date
    11-28-2007
    Posts
    45

    seach and match to give result

    Hi all, I have a list say, 1 to 5 in col A and in B1, the user will enter a number, say X, and in C1, i want the result after searching the value of X thru A1:A5. For ex, if X=4, then C1= "number present" ; OR if X=6 , C1="number absent"..... Any help will be highly appreciated.. Thanks !

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: seach and match to give result

    Either

    =IF(ISNUMBER(MATCH(B1,A1:A5,0)),"Number Present","Number Absent")

    or

    =IF(COUNTIF(A1:A5,B1),"Number Present","Number Absent")

  3. #3
    Registered User
    Join Date
    11-28-2007
    Posts
    45

    Re: seach and match to give result-SOLVED

    Done.. It worked Thanks !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1