+ Reply to Thread
Results 1 to 4 of 4

Searching for alphanumeric values

  1. #1
    Registered User
    Join Date
    05-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Searching for alphanumeric values

    I have a sheet containing the names and details, such as religion, of 630 inhabitants of Ballymena workhouse in 1847, the worst year of the Irish famine.
    I would like to set up a series of searches under the "religion" column to find out how many were 'Presbyterian', 'Rom.Catholic', 'Est.Church'.

    I realise that this is probably very simple but I have had very little experience with Excel.

    Sean.
    Last edited by seananton; 05-08-2009 at 03:37 PM.

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

    Re: Searching for alphanumeric values

    Check out the Countif() function in Excel Help.

    e.g.

    =Countif(A:A,"Presbyterian") counts number of Presbyterian entries in column A

    Edit:

    And Sumif would sum of values in adjacent column to the criteria...

    e.g.


    =SUMIF(A:A,"Presbyterian",B:B)
    Last edited by NBVC; 05-08-2009 at 09:26 AM.
    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-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Searching for alphanumeric values

    Thanks, that led me to the answer.
    Some 25% of the inhabitants died and now I would like to search for a combination of "Presbyterian" and "Dead" in columns 'H' and 'P'

    Thanks,

    Sean

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

    Re: Searching for alphanumeric values

    For multiple criteria use Sumproduct()

    e.g. =Sumproduct(--(H2:H100="Presbyterian"),--(P2:P100="Dead"),S2:S100)

    where S2:S100 is the range to sum up... if you just want to count, take that range out of the formula.

    Note also: with Sumproduct you have to use defined ranges like H2:H100 not full ranges like H:H (unless you use XL2007)

+ Reply to 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