Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif / subtotal / something else?

I have had a lot of help here and almost always answer if found with search.
Now I couldn't find such so here it comes.

I have a file whereare columns A: freight numer B: date C: sort D: km E:
amount ... H: eur per frieght

One freight might have 1-7 rows, because each sort (pine, birch etc) makes
own row.

Now I need to find a way to have column I adding total eur per freight. The
problem is that this formula should be already in the cells, so when user is
writing information, sums are appearing without they have to do anything. BUT
the sum should appear only to the last row of the freight. Columns don't have
to be in that order, position can be changed.

Example:

freight date sort km amount/tn ... eur total eur

12 16.1.09 pine 15 27 270 270
13 16.1.09 birch 16 10 150
13 16.1.09 pine 18 12 170 320

This can be made almost how ever, most of cells will be protected. Users
don't know very much about Excel. Thanks in advance any ideas.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default Sumif / subtotal / something else?

In cell I1 :
=IF(COUNTIF(A1:$A$10,A1)=1,SUMPRODUCT(($A$1:$A$10= A1)*$H$1:$H$10),"")
To be dragged down.
HTH
Daniel
I have had a lot of help here and almost always answer if found with search.
Now I couldn't find such so here it comes.

I have a file whereare columns A: freight numer B: date C: sort D: km E:
amount ... H: eur per frieght

One freight might have 1-7 rows, because each sort (pine, birch etc) makes
own row.

Now I need to find a way to have column I adding total eur per freight. The
problem is that this formula should be already in the cells, so when user is
writing information, sums are appearing without they have to do anything. BUT
the sum should appear only to the last row of the freight. Columns don't have
to be in that order, position can be changed.

Example:

freight date sort km amount/tn ... eur total eur

12 16.1.09 pine 15 27 270 270
13 16.1.09 birch 16 10 150
13 16.1.09 pine 18 12 170 320

This can be made almost how ever, most of cells will be protected. Users
don't know very much about Excel. Thanks in advance any ideas.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif / subtotal / something else?

Thanks, I tried but with this I get error #VALUE!


"Daniel.C" kirjoitti:

In cell I1 :
=IF(COUNTIF(A1:$A$10,A1)=1,SUMPRODUCT(($A$1:$A$10= A1)*$H$1:$H$10),"")
To be dragged down.
HTH
Daniel
I have had a lot of help here and almost always answer if found with search.
Now I couldn't find such so here it comes.

I have a file whereare columns A: freight numer B: date C: sort D: km E:
amount ... H: eur per frieght

One freight might have 1-7 rows, because each sort (pine, birch etc) makes
own row.

Now I need to find a way to have column I adding total eur per freight. The
problem is that this formula should be already in the cells, so when user is
writing information, sums are appearing without they have to do anything. BUT
the sum should appear only to the last row of the freight. Columns don't have
to be in that order, position can be changed.

Example:

freight date sort km amount/tn ... eur total eur

12 16.1.09 pine 15 27 270 270
13 16.1.09 birch 16 10 150
13 16.1.09 pine 18 12 170 320

This can be made almost how ever, most of cells will be protected. Users
don't know very much about Excel. Thanks in advance any ideas.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif / subtotal / something else?

Hi again,
now I have total sums to freights which has more than 1 row, but only one
row freights are blank. I have tried to change last "" referring to cell
eur/row but this doesn't seem to work when formula is copied.

=IF(COUNTIF(A9:$A$100;A8)=1;SUMPRODUCT(($A$8:$A$10 0=A8)*$O$8:$O$100);"")

This formula is from row 9.

What am I doing wrong? I have a feeling that formula is right but error is
between keyboard and chair :/

"NeedToKnow" kirjoitti:

Thanks, I tried but with this I get error #VALUE!


"Daniel.C" kirjoitti:

In cell I1 :
=IF(COUNTIF(A1:$A$10,A1)=1,SUMPRODUCT(($A$1:$A$10= A1)*$H$1:$H$10),"")
To be dragged down.
HTH
Daniel
I have had a lot of help here and almost always answer if found with search.
Now I couldn't find such so here it comes.

I have a file whereare columns A: freight numer B: date C: sort D: km E:
amount ... H: eur per frieght

One freight might have 1-7 rows, because each sort (pine, birch etc) makes
own row.

Now I need to find a way to have column I adding total eur per freight. The
problem is that this formula should be already in the cells, so when user is
writing information, sums are appearing without they have to do anything. BUT
the sum should appear only to the last row of the freight. Columns don't have
to be in that order, position can be changed.

Example:

freight date sort km amount/tn ... eur total eur

12 16.1.09 pine 15 27 270 270
13 16.1.09 birch 16 10 150
13 16.1.09 pine 18 12 170 320

This can be made almost how ever, most of cells will be protected. Users
don't know very much about Excel. Thanks in advance any ideas.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumif / subtotal / something else?

The first A9 should be A8. OR, all the 8's should be 9's.

Also, check that the values in O8:O100 are numeric and not text
values.

Hope this helps.

Pete

On Jan 16, 12:30*pm, NeedToKnow
wrote:
Hi again,
now I have total sums to freights which has more than 1 row, but only one
row freights are blank. I have tried to change last "" referring to cell
eur/row but this doesn't seem to work when formula is copied.

=IF(COUNTIF(A9:$A$100;A8)=1;SUMPRODUCT(($A$8:$A$10 0=A8)*$O$8:$O$100);"")

This formula is from row 9.

What am I doing wrong? I have a feeling that formula is right but error is
between keyboard and chair :/



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Sumif / subtotal / something else?

Big thank you for both of you Daniel.C and Pete_UK!!!
With your help I did it again :D


=IF(COUNTIF(A8:$A$100;A8)=1;SUMPRODUCT(($A$8:$A$10 0=A8)*$O$8:$O$100);"")

"Pete_UK" kirjoitti:

The first A9 should be A8. OR, all the 8's should be 9's.

Also, check that the values in O8:O100 are numeric and not text
values.

Hope this helps.

Pete

On Jan 16, 12:30 pm, NeedToKnow
wrote:
Hi again,
now I have total sums to freights which has more than 1 row, but only one
row freights are blank. I have tried to change last "" referring to cell
eur/row but this doesn't seem to work when formula is copied.

=IF(COUNTIF(A9:$A$100;A8)=1;SUMPRODUCT(($A$8:$A$10 0=A8)*$O$8:$O$100);"")

This formula is from row 9.

What am I doing wrong? I have a feeling that formula is right but error is
between keyboard and chair :/


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
Autofilter with Subtotal Sumif Robert Christie Excel Worksheet Functions 10 August 3rd 07 12:12 AM
Subtotal and sumif help Ellen G. Excel Discussion (Misc queries) 1 November 9th 06 04:32 PM
subtotal and sumif Pete Excel Worksheet Functions 2 June 30th 06 01:46 PM
Sumif & subtotal Blackwar Excel Discussion (Misc queries) 5 December 8th 05 01:11 PM
Subtotal on SumIf Steven Excel Worksheet Functions 1 May 26th 05 12:25 AM


All times are GMT +1. The time now is 04:44 AM.

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

About Us

"It's about Microsoft Excel"