Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default Sorting the cells of a formula causes the formula to not work

I have a list of parts (about 50) in colomn A and thier cost in column B.
Below this data set I have a formula to sum the purchased parts, another
formula to sum the welded parts, and another formula to sum the labor
intensive parts. An example of these formulas would be
"=sum(B2,B12,B15,B20,B35)". When I sort the list of parts alphabeticaly or
the cost low to high / high to low the formulas below do not track the sorted
cells. It still references the same thing (ie. "=sum(B2,B12,B15,B20,B35)")
even though the sorted cells have moved positions. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 683
Default Sorting the cells of a formula causes the formula to not work

Jake,

Add a third column C and label it Part Type. In this column put either
Purchased, Welded, or Labor Intensive for all the parts. To get the Total of
Purchased Parts use this:

=SUMPRODUCT(($B$2:$B$50)*($C$2:$C$50="Purchased"))

use Ctrl-Shft-Enter when inputting this formula. To get the Welded and
Labor Intensive, just replace Purchased with either Welded or Labor Intensive

Hope this helps
--
Brian


"Jake" wrote:

I have a list of parts (about 50) in colomn A and thier cost in column B.
Below this data set I have a formula to sum the purchased parts, another
formula to sum the welded parts, and another formula to sum the labor
intensive parts. An example of these formulas would be
"=sum(B2,B12,B15,B20,B35)". When I sort the list of parts alphabeticaly or
the cost low to high / high to low the formulas below do not track the sorted
cells. It still references the same thing (ie. "=sum(B2,B12,B15,B20,B35)")
even though the sorted cells have moved positions. Please help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Sorting the cells of a formula causes the formula to not work

try this

=SUBTOTAL(9,B2,B12,B15,B20,B35)

On Jan 30, 9:17*pm, Jake wrote:
I have a list of parts (about 50) in colomn A and thier cost in column B.
Below this data set I have a formula to sum the purchased parts, another
formula to sum the welded parts, and another formula to sum the labor
intensive parts. An example of these formulas would be
"=sum(B2,B12,B15,B20,B35)". When I sort the list of parts alphabeticaly or
the cost low to high / high to low the formulas below do not track the sorted
cells. It still references the same thing (ie. "=sum(B2,B12,B15,B20,B35)")
even though the sorted cells have moved positions. Please help.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sorting the cells of a formula causes the formula to not work

Hi,

You would not need to use the Ctrl+Shift+Enter if you are using SUMPRODUCT.
Just hit the Enter key

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Brian" wrote in message
...
Jake,

Add a third column C and label it Part Type. In this column put either
Purchased, Welded, or Labor Intensive for all the parts. To get the Total
of
Purchased Parts use this:

=SUMPRODUCT(($B$2:$B$50)*($C$2:$C$50="Purchased"))

use Ctrl-Shft-Enter when inputting this formula. To get the Welded and
Labor Intensive, just replace Purchased with either Welded or Labor
Intensive

Hope this helps
--
Brian


"Jake" wrote:

I have a list of parts (about 50) in colomn A and thier cost in column B.
Below this data set I have a formula to sum the purchased parts, another
formula to sum the welded parts, and another formula to sum the labor
intensive parts. An example of these formulas would be
"=sum(B2,B12,B15,B20,B35)". When I sort the list of parts alphabeticaly
or
the cost low to high / high to low the formulas below do not track the
sorted
cells. It still references the same thing (ie.
"=sum(B2,B12,B15,B20,B35)")
even though the sorted cells have moved positions. Please help.


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
Formula Won't Work after 10 Cells CommMajor Excel Discussion (Misc queries) 4 January 17th 08 09:09 PM
Formula for sorting a range of cells in decending order Sasikiran Excel Discussion (Misc queries) 6 June 7th 07 02:45 PM
Sorting and Eliminating Blank Cells in Formula range Santas Helper Excel Worksheet Functions 3 November 24th 06 07:13 PM
How can I get a formula to work on visible cells with autofilter? Jude Sweeney Excel Discussion (Misc queries) 2 May 16th 06 05:33 PM
in excel, formula to work only when all cells full of data DINO New Users to Excel 2 December 24th 05 07:01 PM


All times are GMT +1. The time now is 08:47 AM.

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"