RE: Using AND and SUMIF function together

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I saw a post from Peo Sjoblom from 2005 where he answered someone's question
about summing a column where the last row will be changing. He gave this
formula:
=SUM($A$1:INDEX(A:A,D1)) where A1 always the first cell and D1 holds the
last row number.

Can someone also tell me how to incorporate this INDEX function to your
function in order to sum my column O which will also have the final cell in
the column vary?

Thank you for your help!


"Studebaker" wrote:

Hello,

I have 2 columns of invoices totals like below:

Column I Column O
Original Invoice Total Amount Shortpaid
$45,679.00 ($-255.00)
$123.00 $0.00
$1,500.00 blank
blank blank

I'm trying to sum column O to give a total of what the client still owes us.
I need to:

a) Sum column O if the amounts in column O are < 0 (which means the client
has shortpd the original invoice) AND
b) Sum column I (the amount of the original invoice) if the invoice has flat
out not been paid--so sum column I if column O is blank (not been pd) AND
column I has a number in it (if the invoice exists and there's no blank
space in column I)

I tried this but I get a "FALSE" in my cell:

=AND(SUMIF(O3:O265,"<0"),SUMIF(I3:I266,AND(ISNUMBER(I3:I266), O3:O266="")))

Can someone help with this function (no macros please)?

Thanks very much!
.



Relevant Pages

  • Re: Sum numbers based on the contents of another cell
    ... > if it's not empty (meaning there's no invoice # there) ... this formula will sum column D if there is something in in column E ... > column I've started to put the invoice numbers for the ones that have been ... > This way I can subtract that total amount from the ...
    (microsoft.public.excel.worksheet.functions)
  • RE: Using AND and SUMIF function together
    ... I have 2 columns of invoices totals like below: ... I'm trying to sum column O to give a total of what the client still owes us. ... Sum column I (the amount of the original invoice) if the invoice has flat ...
    (microsoft.public.excel.misc)
  • RE: Using AND and SUMIF function together
    ... I have 2 columns of invoices totals like below: ... I'm trying to sum column O to give a total of what the client still owes us. ... Sum column I (the amount of the original invoice) if the invoice has flat ...
    (microsoft.public.excel.misc)
  • Using AND and SUMIF function together
    ... I have 2 columns of invoices totals like below: ... I'm trying to sum column O to give a total of what the client still owes us. ... Sum column I (the amount of the original invoice) if the invoice has flat ...
    (microsoft.public.excel.misc)
  • Re: Alteration of invoice?
    ... that some items in the original invoice are less than agreed ... I'm not sure why you describe him as foolish to point this out. ... delay settling it (especially when the amount in error is small compared ...
    (uk.business.accountancy)