Closed Thread
Results 1 to 6 of 6

How do you search an entire column with an if statement?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-04-2010
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2000
    Posts
    4

    How do you search an entire column with an if statement?

    I have an if statement that says... if cell A1 is equal to anything in column J, then print "Yes".

    Column J has 150 different variables in it, how do I create this "If" Statement?

    Thank you!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do you search an entire column with an if statement?

    =IF(ISNUMBER(MATCH(A1,J:J,0)),"Yes","No")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-04-2010
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: How do you search an entire column with an if statement?

    Thank you for your help! It worked great!

    Here is another thing I am now trying to do...not even sure if it is possible with excel.

    I want to sift through a column for the word yes... and if the word is yes I want the stock symbol that it relates to.... the stock that is in the same row, just the next column over, to pop up in another work ship in slot A1.... I then want that stock symbol to stay there for 15 seconds even if the word yes has disappeared from the first work sheet.

    If there is another yes that comes up next in the orgininal worksheet, I want it to pop into column A1 replacing the old stock.... I want the old stock to then move to B1...

    Both will disappear after 15 seconds.

    So basically every time a yes appears in a column... that stock symbol will appear in another work sheet and create a list that moves if there are any new symbols with in 15 seconds.

    Do you know if this is even doable? Is it doable without the 15 seconds? Thanks a ton for your help!

  4. #4
    Registered User
    Join Date
    05-04-2010
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2000
    Posts
    4

    How do you create a live, changing list?

    I want to sift through a column for the word yes... and if the word is yes I want the stock symbol that it relates to.... the stock that is in the same row, just the next column over, to pop up in another work ship in slot A1.... I then want that stock symbol to stay there for 15 seconds even if the word yes has disappeared from the first work sheet.

    If there is another yes that comes up next in the orgininal worksheet, I want it to pop into column A1 replacing the old stock.... I want the old stock to then move to B1...

    Both will disappear after 15 seconds.

    So basically every time a "yes" appears in a column... that stock symbol will appear in another work sheet and create a list that moves if there are any new symbols within 15 seconds.

    Do you know if this is even doable? Is it doable without the 15 seconds? Thanks a ton for your help!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do you search an entire column with an if statement?

    The timing part requires VBA automatically.. Excel native functions can't control automation....

    You can list the Last and Second last "yes's" an its corresponding row partners, in another workbook if that is what you are asking, that will change only when adding/deleting yes's from the original.

    It you need the timing part, then repost in the Programming forum.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do you search an entire column with an if statement?

    This part is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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