+ Reply to Thread
Results 1 to 4 of 4

I need some assistance with IF statement

  1. #1
    Registered User
    Join Date
    10-21-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Angry I need some assistance with IF statement

    I need a formula that will look at a range of cells for a certain "text". If the text matches then it will display some test in the cell. Simple. I can get the formula to work when looking at just one cell, but I can figure out how to make it look at a range of cells. Here is my formula



    =IF(B3="KV","Pump Stand",IF(B3="KS","Pump Stand",""))

    So instead of just looking at cell B3 I need it to look a cell range B3 through Z3.

    Any ideas?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: I need some assistance with IF statement

    welcome to the forum, billylasvegas. this will give you the total count of cells with either the word "KV" OR "KS"
    =SUM(COUNTIF(B3:Z3,{"KV","KS"}))

    so if that is >0, i suppose you will label it as "Pump Stand"?
    =IF(SUM(COUNTIF(B3:Z3,{"KV","KS"}))>0,"Pump Stand","")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    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,946

    Re: I need some assistance with IF statement

    Hi and welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the adress bar)

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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

  4. #4
    Registered User
    Join Date
    10-21-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Thumbs up Re: I need some assistance with IF statement

    This worked perfect, thank you so much!

+ 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] Assistance with If And statement
    By Delta729 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2013, 09:56 AM
  2. Assistance Require with IF, ELSE statement
    By Soulj4h in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-28-2013, 12:08 AM
  3. [SOLVED] IF Statement Assistance??
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-19-2013, 09:11 PM
  4. IF Statement Assistance
    By gasguzzler in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2009, 04:50 PM
  5. Assistance with an IF statement
    By dabman in forum Excel General
    Replies: 1
    Last Post: 04-09-2009, 08:31 AM

Tags for this Thread

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