Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Need Help with formula writing

Hi-

I'd need a formula in colum 'C'. If the number in colum A is matched, then
sum-up the total,e.g 20 in column C; else return value in column B, e.g 5,
and 15.

A B = c
2006 10
2006 10 20
2111 5 5
2112 15 15

Regards,
Soth

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need Help with formula writing

Try this:

Entered in C1 and copied down as needed:

=IF(A1=A2,"",SUMIF(A$1:A1,A1,B$1:B1))

--
Biff
Microsoft Excel MVP


"Soth" wrote in message
...
Hi-

I'd need a formula in colum 'C'. If the number in colum A is matched,
then
sum-up the total,e.g 20 in column C; else return value in column B, e.g 5,
and 15.

A B = c
2006 10
2006 10 20
2111 5 5
2112 15 15

Regards,
Soth



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Need Help with formula writing

In C2:
=IF(COUNTIF(A$2:A2,A2)1,"",SUMIF(A:A,A2,B:B))

This will give you totals as the first instance of a repeated value. Note
that if your data is sorted, you might also want to look at Data -Subtotal as
a way of quickly summarizing your data.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Soth" wrote:

Hi-

I'd need a formula in colum 'C'. If the number in colum A is matched, then
sum-up the total,e.g 20 in column C; else return value in column B, e.g 5,
and 15.

A B = c
2006 10
2006 10 20
2111 5 5
2112 15 15

Regards,
Soth

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Need Help with formula writing

Perfect ! Thank you Luke.

"Luke M" wrote:

In C2:
=IF(COUNTIF(A$2:A2,A2)1,"",SUMIF(A:A,A2,B:B))

This will give you totals as the first instance of a repeated value. Note
that if your data is sorted, you might also want to look at Data -Subtotal as
a way of quickly summarizing your data.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Soth" wrote:

Hi-

I'd need a formula in colum 'C'. If the number in colum A is matched, then
sum-up the total,e.g 20 in column C; else return value in column B, e.g 5,
and 15.

A B = c
2006 10
2006 10 20
2111 5 5
2112 15 15

Regards,
Soth

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
Need help writing a formula phyllis Excel Worksheet Functions 13 June 4th 08 05:01 PM
Writing a Formula sadman49 Excel Discussion (Misc queries) 5 November 24th 06 08:03 PM
Need Help Writing a Formula Lynn Excel Worksheet Functions 11 September 11th 05 07:51 PM
writing a formula wolfmasterr Excel Discussion (Misc queries) 3 May 23rd 05 02:27 PM
I need help writing a formula. John III Excel Worksheet Functions 4 December 31st 04 07:26 PM


All times are GMT +1. The time now is 08:42 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"