+ Reply to Thread
Results 1 to 10 of 10

SUMIF

  1. #1
    Guest

    Re: SUMIF

    Hi

    Here's a bit of a long solution - and I'm sure someone will post something
    more elegant!
    =SUMPRODUCT((NOT(ISERROR(VALUE(RIGHT(A2:A5,1)))))*(B2:B5))

    Andy.

    "john the confused" <john the [email protected]> wrote in
    message news:[email protected]...
    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in
    > column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 」100
    > A3 "bbb222", B3 」200
    > A4 "xxxxxx", B4 」150
    > A5 "zzzzzz", B5 」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John




  2. #2
    Domenic
    Guest

    Re: SUMIF

    Try...

    =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)

    Hope this helps!

    In article <[email protected]>,
    "john the confused" <john the [email protected]>
    wrote:

    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 ツ」100
    > A3 "bbb222", B3 ツ」200
    > A4 "xxxxxx", B4 ツ」150
    > A5 "zzzzzz", B5 ツ」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John


  3. #3
    john the confused
    Guest

    Re: SUMIF

    They both work. Thans
    John

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "john the confused" <john the [email protected]>
    > wrote:
    >
    > > What I have is a list in column a of invoice numbers that either end in a
    > > letter or a number & what I need to do is add up the invoice values from
    > > column B for all the invoices that have a number at the end of them in column
    > > A
    > > ie
    > > Cell A1 Invoice, B1 Amount
    > > A2 "aaa111", B2 テつ」100
    > > A3 "bbb222", B3 テつ」200
    > > A4 "xxxxxx", B4 テつ」150
    > > A5 "zzzzzz", B5 テつ」300
    > > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > > in a number.
    > >
    > > Any thoughts on doing this?
    > >
    > > John

    >


  4. #4
    Guest

    Re: SUMIF

    Hi

    Here's a bit of a long solution - and I'm sure someone will post something
    more elegant!
    =SUMPRODUCT((NOT(ISERROR(VALUE(RIGHT(A2:A5,1)))))*(B2:B5))

    Andy.

    "john the confused" <john the [email protected]> wrote in
    message news:[email protected]...
    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in
    > column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 」100
    > A3 "bbb222", B3 」200
    > A4 "xxxxxx", B4 」150
    > A5 "zzzzzz", B5 」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John




  5. #5
    Domenic
    Guest

    Re: SUMIF

    Try...

    =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)

    Hope this helps!

    In article <[email protected]>,
    "john the confused" <john the [email protected]>
    wrote:

    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 ツ」100
    > A3 "bbb222", B3 ツ」200
    > A4 "xxxxxx", B4 ツ」150
    > A5 "zzzzzz", B5 ツ」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John


  6. #6
    john the confused
    Guest

    Re: SUMIF

    They both work. Thans
    John

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "john the confused" <john the [email protected]>
    > wrote:
    >
    > > What I have is a list in column a of invoice numbers that either end in a
    > > letter or a number & what I need to do is add up the invoice values from
    > > column B for all the invoices that have a number at the end of them in column
    > > A
    > > ie
    > > Cell A1 Invoice, B1 Amount
    > > A2 "aaa111", B2 テつ」100
    > > A3 "bbb222", B3 テつ」200
    > > A4 "xxxxxx", B4 テつ」150
    > > A5 "zzzzzz", B5 テつ」300
    > > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > > in a number.
    > >
    > > Any thoughts on doing this?
    > >
    > > John

    >


  7. #7
    john the confused
    Guest

    SUMIF

    What I have is a list in column a of invoice numbers that either end in a
    letter or a number & what I need to do is add up the invoice values from
    column B for all the invoices that have a number at the end of them in column
    A
    ie
    Cell A1 Invoice, B1 Amount
    A2 "aaa111", B2 ツ」100
    A3 "bbb222", B3 ツ」200
    A4 "xxxxxx", B4 ツ」150
    A5 "zzzzzz", B5 ツ」300
    So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    in a number.

    Any thoughts on doing this?

    John

  8. #8
    Guest

    Re: SUMIF

    Hi

    Here's a bit of a long solution - and I'm sure someone will post something
    more elegant!
    =SUMPRODUCT((NOT(ISERROR(VALUE(RIGHT(A2:A5,1)))))*(B2:B5))

    Andy.

    "john the confused" <john the [email protected]> wrote in
    message news:[email protected]...
    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in
    > column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 」100
    > A3 "bbb222", B3 」200
    > A4 "xxxxxx", B4 」150
    > A5 "zzzzzz", B5 」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John




  9. #9
    Domenic
    Guest

    Re: SUMIF

    Try...

    =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)

    Hope this helps!

    In article <[email protected]>,
    "john the confused" <john the [email protected]>
    wrote:

    > What I have is a list in column a of invoice numbers that either end in a
    > letter or a number & what I need to do is add up the invoice values from
    > column B for all the invoices that have a number at the end of them in column
    > A
    > ie
    > Cell A1 Invoice, B1 Amount
    > A2 "aaa111", B2 ツ」100
    > A3 "bbb222", B3 ツ」200
    > A4 "xxxxxx", B4 ツ」150
    > A5 "zzzzzz", B5 ツ」300
    > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > in a number.
    >
    > Any thoughts on doing this?
    >
    > John


  10. #10
    john the confused
    Guest

    Re: SUMIF

    They both work. Thans
    John

    "Domenic" wrote:

    > Try...
    >
    > =SUMPRODUCT(--(ISNUMBER(RIGHT(A2:A5)+0)),B2:B5)
    >
    > Hope this helps!
    >
    > In article <[email protected]>,
    > "john the confused" <john the [email protected]>
    > wrote:
    >
    > > What I have is a list in column a of invoice numbers that either end in a
    > > letter or a number & what I need to do is add up the invoice values from
    > > column B for all the invoices that have a number at the end of them in column
    > > A
    > > ie
    > > Cell A1 Invoice, B1 Amount
    > > A2 "aaa111", B2 テつ」100
    > > A3 "bbb222", B3 テつ」200
    > > A4 "xxxxxx", B4 テつ」150
    > > A5 "zzzzzz", B5 テつ」300
    > > So I want to have the sum of B2 & B3 as these have invoicce numbers ending
    > > in a number.
    > >
    > > Any thoughts on doing this?
    > >
    > > John

    >


+ 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