+ Reply to Thread
Results 1 to 12 of 12

Column IF command search

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Column IF command search

    I am trying to search an entire column for a specific phrase (i.e. "weekend") that may be within several different cells, but is not the only text in those cells. Is there a way to format an IF command to do this kind of work?

  2. #2
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Re: Column IF command search

    Also, if I am copying an IF formula down a column, is there a way to input a command to leave the column with its current value if it does not satisfy the requirements?

    Thanks

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Column IF command search

    Not knowing what column you're searching, I went with column A.
    Not sure what output you're looking for:

    If a number count of how many "weekend"s are found? Put this in Column B:
    Please Login or Register  to view this content.
    If a verification that "weekend"s exist in said column, Put this in Column B:
    Please Login or Register  to view this content.
    Oh! I get it. I need rep--->҉

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Column IF command search

    You could use conditional formatting to highlight the cells that have the phrase that you are looking for.

    Go to Conditional Formatting, New Rule, Use Formula..., and enter the following formula. (I have assumed that the data is in column A so select column A)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Choose the formatting that you want and all cells that contain "weekend" (not the quotes) will be formatted with the formatting that you chose.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Re: Column IF command search

    Sorry I'm not sure I clarified that well.

    My column A is formatted as such: each cell begins with "weekendpost" followed by a date and time, so if it is may 10 at 715, the cell will read "weekendpostmay10715pm". I want to be able to find all the cells beginning with weekendpostmay10 and out put a corresponding number.

    Hope this makes my issue a bit more clear

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Column IF command search

    Enter what you want to identify in the Conditional Formatting formula that I gave you and the cells that contain that text will be formatted with the formatting that you chose.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Column IF command search

    out put a corresponding number.
    What number...the date?

    I suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Re: Column IF command search

    I am struggling to utilize the Conditional Formatting tool... I am in Excel 2011 and when I try to input that formula nothing seems to be happening for me.

  9. #9
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Re: Column IF command search

    @FDibbins I am trying to output a number for each day of the week. So Sundays would output 0s, Mondays 1s and so on

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Column IF command search

    Select column A.
    Click on Conditional Formatting, New Rule, Use Formula..

    Enter the formula that I gave you with the text you want to find replacing the word weekend . Then click on Format and choose the formatting that you want. Click OK OK then Apply then OK.

  11. #11
    Registered User
    Join Date
    06-11-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Excell 2011
    Posts
    11

    Re: Column IF command search

    Ok so I got to that point and I am only able to fill the cells with a specific color it seems like. Is there a way I can just highlight them and go from there? Thanks for all the help I am very close

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Column IF command search

    There are tabs under Format and you can combine the formatting from the various tabs to get many different formats.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro/s to create Search Bar to filter to search terms entered activated by Command Button
    By JasonRay in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2013, 03:44 PM
  2. Replies: 1
    Last Post: 07-26-2011, 06:48 AM
  3. search command button
    By albert28 in forum Excel General
    Replies: 3
    Last Post: 06-24-2010, 08:35 AM
  4. Wildcard search for IF command
    By Zyphon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2008, 05:00 AM
  5. Wildcard search for SUMIF command?
    By Zyphon in forum Excel General
    Replies: 4
    Last Post: 02-08-2008, 11:39 AM

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