I am trying to do a sumif
=SUMIF(O:O,"<>do not invoice",L:L)
but i am using filters as well, how can i get this added in as to not show the unfiltered data as well?
thanks
I am trying to do a sumif
=SUMIF(O:O,"<>do not invoice",L:L)
but i am using filters as well, how can i get this added in as to not show the unfiltered data as well?
thanks
Last edited by lky2k23; 01-11-2012 at 08:18 AM.
Hi
Which are filter conditions??
Why don't you use ranges. EX.>>o1:o50>>>>l1:l500
Maybe you need Subtotal function.
Would you like to upload a small sample workbook?
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
thanks - attached.
Try using
=SUBTOTAL(109,"range to sum")
Then filter out "do not invoice" in addition to your other conditions.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Maybe =SUBTOTAL(9;L:L)
Thanks I had hoped there would have been a way to avoid that but i dont need to see the do not invoices anyway.
I think you would need a formula like
=SUM(IF($O$2:$O$1658<>"Do not invoice",IF(SUBTOTAL(3,OFFSET($L$2:$L$1658,ROW($L$2:$L$1658)-MIN(ROW($L$2:$L$1658)),,1)),$L$2:$L$1658,0)))
array-entered.
Good luck.
#value!
not sure why
Did you enter it with Ctrl+Shift+Enter?
no just ctrl+v
tried c+s+e same thing
Select the cell with the formula, press f2, then Ctrl+Shift+Enter. Works in the sample you posted.
perfect!
what does C+S+E do?
another add on to this, is there anyway I can get (either by adding to my refresh macro) what is in the filter copied to the 'page' of my pivot table?
Ctrl+Shift+Enter makes it an array formula.
Not entirely sure what you are referring to with that last question?
If you can see macro 3, I would like to add what it pastes to the front sheet A1, to the pivot 'page' (C1) When i have tried to paste this in i get an error you cannot change, move a part of........so I have to manually enter this in
Thanks
Attached.
I think perhaps you mean something similar to this?
Please Login or Register to view this content.
should i just replace my macro 3 with this?
Yes - it should do all of the same things I think plus setting the filter on the pivot table.
FANTASTIC! You saving me hours!
Hopefully last thing, I want to be able to print 2 pages to pdf is this possible? I have got the following;
But it prints to 2 documents currently. What would be really cool is if it took the name to save it as the company name on the front sheet but 1 step at a timeSheets(Array("Front Sheet £", "Backup")).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Adobe PDF", Collate:=True
I am afraid I know next to nothing about printing to PDF, other than that it is much easier on 2007+.
thanks for all your help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks