#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Addition to Formula

I have the following formula;

=SUMIF(AJ4:AJ123,"T1",AI3:AI122)+SUMIF(AK4:AK123," T1",AI3:AI122)+SUMIF(AL4:AL123,"T1",AI3:AI122)+SUM IF(AM4:AM123,"T1",AI3:AI122)

Basically if a cell in AJ, AK, AL, or AM has T1 in it then it sums up the
cells that are in column AI and one row above where the T1 was located.

However it still calculates cells that are hidden, how do I have it only add
up visible cells?

Any help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Addition to Formula

SUMIF and SUM add all cells in the range hidden or visible. However
SUBTOTAL sums only visible cells. This is particularly useful if you
have AutoFilter in place on your data.

Suppose Column A has product name and Column B has Sales Quantities;
Product name repeats in several rows.
Leave two blank rows where your data ends in Column B and write
SubTotal instead of Sum. For example =SUBTOTAL(9,B1:B10)
Build AutoFilter on Column A and filter on your Product name; some
cell may be hidden depending on filter selection.
You will find that Subtotal will only add visible cells, not all cells
in the range.

Aqib Rizvi
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Addition Formula LyndaP Excel Discussion (Misc queries) 4 August 27th 08 08:42 PM
Formula for addition tigermoth Excel Worksheet Functions 3 February 27th 08 12:01 PM
Addition & multiplication formula Vi Excel Discussion (Misc queries) 7 January 18th 08 05:32 PM
Formula Addition Copy Joey Excel Discussion (Misc queries) 6 October 5th 06 11:44 PM
Progressive Addition Formula Robert Moore Excel Worksheet Functions 2 July 17th 05 03:52 AM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"