Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to find a character in a given range of cells in Excel  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

kwfine

    Topic Starter


    Intermediate
    Good evening all,

    I am writing a simple program to find if there is a speicifc character in a given range of cells in Excel.
    Here is an example:
    From cells A1 to D10, there are 40 random characters, from A to Z.
    Let say, if a character B is found, then it will return 2;
    and it will return 3 if a character C is found, and so on.
    If a character happens more than once, for example,
    character B is found in cell A4 and cell D9, a number 2 will be returned instead of 4.

    Here is what I can think of:
    =IF(A1='B', 2, 0)
    I don't know how to move on.

    Could you help me out please?

    Thanks in advance!
    Kitty

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: how to find a character in a given range of cells in Excel
    « Reply #1 on: May 22, 2008, 11:43:17 PM »
    VLOOKUP might work here.

    Have a look at THIS thread.

    squall_01



      Prodigy

      Thanked: 80
      Re: how to find a character in a given range of cells in Excel
      « Reply #2 on: May 23, 2008, 02:45:37 AM »
      07 should allow you to do this, but I dont really recall unless your using an older version.
      Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

      If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres