+ Reply to Thread
Results 1 to 5 of 5

Does a range of cells contain a letter?

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Does a range of cells contain a letter?

    I have a spreadsheet that monitors whether I have visted a learner in a given month.

    I want to have a cell that displays "Yes" if I have visited the learner and entered a V in any of the 31 (July) cells in the row.

    I have tried =IF(COUNTIF(g9:g31,"V")>0,"Yes","NO") with no success.

    not sure if it i relevant, but the sheet I am using has been formatted as a Table (just to allow alternate light and dark rows).

    TIA

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Does a range of cells contain a letter?

    That formula looks fine to me.

    Maybe it's not a "V" maybe it includes a space (though I doubt it)?

    The way to test this is to find a cell that contains a "V" e.g. G9

    and set another cell based on that value,e.g.

    in A1
    =(G9="V")

    If you get TRUE it's a "V" if not that would indicate why you're not getting any results.

    Might be best to post the spreadsheet (removing any sensitive date of course).


    UPDATE: You mention "any of the cells in that row"
    the range G9:G31 is a COLUMN not a row.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Does a range of cells contain a letter?

    It's also not 31 cells.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Does a range of cells contain a letter?

    My apologies, I had not changed the Formula, it should have read:

    =IF(COUNTIF(g14:ak14,"V")>0,"Yes","NO")

    Cells N14 and Q14 contain "V", but all that happens is the cell where the function is, it shows the function, almost as if the "Show Formula" button had been used.

    Spreadsheet has been attached. TIA for any help.

    Darryl
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Does a range of cells contain a letter?

    DOH!
    Cell was formatted as "Text" rather than "General".

    =IF(COUNTIF(g14:ak14,"V")>0,"Yes","NO") works fine.

+ 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. Replies: 11
    Last Post: 07-15-2012, 04:08 PM
  2. Replies: 2
    Last Post: 04-29-2012, 06:29 AM
  3. Excel 2007 : Using a cells value as letter in range selection
    By elduderino65 in forum Excel General
    Replies: 1
    Last Post: 05-16-2010, 10:44 PM
  4. Using a cells value as letter in range selection
    By elduderino65 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2010, 06:54 PM
  5. Calculate the frequency of a letter in a range of cells
    By cmwilkinson in forum Excel General
    Replies: 1
    Last Post: 02-08-2010, 01:19 PM

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