+ Reply to Thread
Results 1 to 5 of 5

IF Formula possibly?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2007
    Posts
    18

    IF Formula possibly?

    In Column A I have letters:

    Column A
    M
    OM
    P
    C
    OP
    OC

    In Column P I have amount of hours:

    Column P
    500

    200


    Not all cells in P have a value.. what I want to do is lookup in column A9:A36 if there is an "M" to total all hours in cell P9:P36 that have an M...

    I thought =IF(A9:A36="M", Sum(P9:P36)) or something to that.. but I cant get any formula to work...

    Any ideas? I thought this would be easier....

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: IF Formula possibly?

    Sumif

    =sumif(a9:a36,"m",p9:p36)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: IF Formula possibly?

    Hi,

    Try

    =SUMIF(A9:A36,"*M*",P9:P36)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: IF Formula possibly?

    Andy's formula of you want to test for an "M" on it's own, and mine if you want an "M" anywhere in the cell.

  5. #5
    Registered User
    Join Date
    06-19-2007
    Posts
    18

    Re: IF Formula possibly?

    Oh Thank you, Thank you, Thank you!!!!!!!!!! You have saved me so much time! I love this site!

    You are the best!

+ 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