+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="")

  1. #1
    Registered User
    Join Date
    03-17-2006
    MS-Off Ver
    2007
    Posts
    93

    SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="")

    I use this first one to find "AM" or "PM" in a range:
    SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))



    This one I use to to find "complete" or "not done", then count the job types i.e. the "RC", "NC", etc.
    SUMPRODUCT((c5:c160={"RC","NC","RS","dd","d1nc","sdnc","sdddnc"})*(K5:K160= "complete"))


    I need to do the function of the second - look for particular cell content - then look for the AM/PM part.

    I need to look for a BLANK cell in the K5:K160 range, then sum the AM/PM's in C5:C150. The cell containing AM/PM also contains the date, that is why I use the first formula.



    the thread title is just one of the ones I've tried that did not work.


    Anyone help a feller out?
    Better to be roughly right than exactly wrong, unless you are using Excel.

  2. #2
    Bob Phillips
    Guest

    Re: SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="")

    Is it not just

    =SUMPRODUCT(--(K5:K160=""),MOD(C5:C160,1))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "redneck joe" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I use this first one to find "AM" or "PM" in a range:
    > SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))
    >
    >
    >
    > This one I use to to find "complete" or "not done", then count the job
    > types i.e. the "RC", "NC", etc.
    >

    SUMPRODUCT((c5:c160={"RC","NC","RS","dd","d1nc","sdnc","sdddnc"})*(K5:K160=
    > "complete"))
    >
    >
    > I need to do the function of the second - look for particular cell
    > content - then look for the AM/PM part.
    >
    > I need to look for a BLANK cell in the K5:K160 range, then sum the
    > AM/PM's in C5:C150. The cell containing AM/PM also contains the date,
    > that is why I use the first formula.
    >
    >
    >
    > the thread title is just one of the ones I've tried that did not work.
    >
    >
    > Anyone help a feller out?
    >
    >
    > --
    > redneck joe
    >
    >
    > ------------------------------------------------------------------------
    > redneck joe's Profile:

    http://www.excelforum.com/member.php...o&userid=32570
    > View this thread: http://www.excelforum.com/showthread...hreadid=570547
    >




  3. #3
    Registered User
    Join Date
    03-17-2006
    MS-Off Ver
    2007
    Posts
    93
    Quote Originally Posted by Bob Phillips
    Is it not just

    =SUMPRODUCT(--(K5:K160=""),MOD(C5:C160,1))

    --
    HTH

    Bob Phillips

    No, it returned - #value.

    I'm not sure what MOD is. That's new to me...


    Any links to study up on that one?



    For the first part of the formula, I am trying to look in the same column as the "complete" but now for the blank cell. If it matters this column has validations for "complete" and "not done"

    The second part of the function, I'm no longer trying to find the job type ("RS", "NC", etc) any longer, rather I am searching a new column for the "AM". This cell would contain "08/11/2006 AM"
    Last edited by redneck joe; 08-10-2006 at 08:27 PM.

  4. #4
    Bob Phillips
    Guest

    Re: SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="")

    Mod just takes the fractional part. As I read your post, C5:C160 was date
    and time and you just wanted the time, so I MOD it with 1 to get the time,
    and add these where K is blank.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "redneck joe" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Bob Phillips Wrote:
    > > Is it not just
    > >
    > > =SUMPRODUCT(--(K5:K160=""),MOD(C5:C160,1))
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > >

    >
    >
    > No it returned - #value.
    >
    > I'm not sure what MOD is. That's new to me...
    >
    >
    > Any links to study up on that one?
    >
    >
    > --
    > redneck joe
    >
    >
    > ------------------------------------------------------------------------
    > redneck joe's Profile:

    http://www.excelforum.com/member.php...o&userid=32570
    > View this thread: http://www.excelforum.com/showthread...hreadid=570547
    >




  5. #5
    Registered User
    Join Date
    03-17-2006
    MS-Off Ver
    2007
    Posts
    93
    Quote Originally Posted by Bob Phillips
    Mod just takes the fractional part. As I read your post, C5:C160 was date
    and time and you just wanted the time, so I MOD it with 1 to get the time,
    and add these where K is blank.

    --
    HTH

    Bob Phillips

    thanks Bob - I'll play with that and see what I can come up with.

    j

  6. #6
    Registered User
    Join Date
    03-17-2006
    MS-Off Ver
    2007
    Posts
    93
    the winning formula:

    =SUMPRODUCT((ISNUMBER(SEARCH("AM",C5:C453)))*(K5:K453=""))





    I was trying ((--ISNUMBER(FIND("AM",C5:C453)))*(K5:K453=""))



    Anyway, all is good until the size of this file and the volume of users sharing the workkbook just kills the whole system.


    I guess SEARCH works differently than FIND.







    Quote Originally Posted by Bob Phillips
    Mod just takes the fractional part. As I read your post, C5:C160 was date
    and time and you just wanted the time, so I MOD it with 1 to get the time,
    and add these where K is blank.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "redneck joe" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Bob Phillips Wrote:
    > > Is it not just
    > >
    > > =SUMPRODUCT(--(K5:K160=""),MOD(C5:C160,1))
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > >

    >
    >
    > No it returned - #value.
    >
    > I'm not sure what MOD is. That's new to me...
    >
    >
    > Any links to study up on that one?
    >
    >
    > --
    > redneck joe
    >
    >
    > ------------------------------------------------------------------------
    > redneck joe's Profile:

    http://www.excelforum.com/member.php...o&userid=32570
    > View this thread: http://www.excelforum.com/showthread...hreadid=570547
    >

+ 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