Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding text to the subtotal row

I have this sample data:

Project # City State Address Department Staff
1 Phoenix AZ 123 Fake Street HR 3
1 Phoenix AZ 123 Fake Street Legal 2
2 Phoenix AZ 123 Fake Street IT 7
3 Phoenix AZ 999 Square Ave. HR 2
3 Phoenix AZ 999 Square Ave. IT 1
3 Phoenix AZ 999 Square Ave. Sales 4

I need to subtotal by Project and sum all staff, but I need to have the
Address show up on the subtotal row. Is there an easier way of doing this
than copy/paste, considering my actual data includes ~500 projects, and some
addresses have multiple projects (so I can't subtotal by address)?

Thanks, officewrkr
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Adding text to the subtotal row

On Sep 26, 12:28 pm, officewrkr
wrote:
I have this sample data:

Project # City State Address Department Staff
1 Phoenix AZ 123 Fake Street HR 3
1 Phoenix AZ 123 Fake Street Legal 2
2 Phoenix AZ 123 Fake Street IT 7
3 Phoenix AZ 999 Square Ave. HR 2
3 Phoenix AZ 999 Square Ave. IT 1
3 Phoenix AZ 999 Square Ave. Sales 4

I need to subtotal by Project and sum all staff, but I need to have the
Address show up on the subtotal row. Is there an easier way of doing this
than copy/paste, considering my actual data includes ~500 projects, and some
addresses have multiple projects (so I can't subtotal by address)?

Thanks, officewrkr


after you do the subtotal from the subtotal function add the address
as follows:
=SUBTOTAL(9,f14:f15)&" "&d14

the final should look like this

A B C D E F
Project # City State Address Department Staff
1 Phoenix AZ 123 Fake Street HR 3
1 Phoenix AZ 124 Fake Street Legal 2
1 Total 5 123 Fake Street
2 Phoenix AZ 125 Fake Street HR 7
2 Total 7 125 Fake Street
3 Phoenix AZ 126 Fake Street Legal 2
3 Phoenix AZ 127 Fake Street HR 1
3 Phoenix AZ 128 Fake Street Legal 4
3 Total 7 128 Fake Street
Grand Total 19
6






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding text to the subtotal row


"Titus" wrote:

On Sep 26, 12:28 pm, officewrkr
wrote:
I have this sample data:

Project # City State Address Department Staff
1 Phoenix AZ 123 Fake Street HR 3
1 Phoenix AZ 123 Fake Street Legal 2
2 Phoenix AZ 123 Fake Street IT 7
3 Phoenix AZ 999 Square Ave. HR 2
3 Phoenix AZ 999 Square Ave. IT 1
3 Phoenix AZ 999 Square Ave. Sales 4

I need to subtotal by Project and sum all staff, but I need to have the
Address show up on the subtotal row. Is there an easier way of doing this
than copy/paste, considering my actual data includes ~500 projects, and some
addresses have multiple projects (so I can't subtotal by address)?

Thanks, officewrkr


after you do the subtotal from the subtotal function add the address
as follows:
=SUBTOTAL(9,f14:f15)&" "&d14

the final should look like this

A B C D E F
Project # City State Address Department Staff
1 Phoenix AZ 123 Fake Street HR 3
1 Phoenix AZ 124 Fake Street Legal 2
1 Total 5 123 Fake Street
2 Phoenix AZ 125 Fake Street HR 7
2 Total 7 125 Fake Street
3 Phoenix AZ 126 Fake Street Legal 2
3 Phoenix AZ 127 Fake Street HR 1
3 Phoenix AZ 128 Fake Street Legal 4
3 Total 7 128 Fake Street
Grand Total 19
6


Thanks Titus, I did that and it worked, but it seems that I would have to do that for each Total row which would be as cumbersome as copy/paste. Ideally, I would be able to subtotal projects and sum column F while setting column D on the total row equal to the address listed in column D.




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
Excel subtotal function- put subtotals in bold text EPMMGR06 Excel Discussion (Misc queries) 2 August 31st 06 05:47 PM
Pivot Table-change Subtotal text? Sue Excel Discussion (Misc queries) 2 May 15th 06 02:48 PM
Need subtotal function to return text as result Alby Excel Discussion (Misc queries) 0 February 15th 06 10:47 PM
adding IF statement to subtotal for autofiltered data fbarbie Excel Worksheet Functions 1 December 7th 05 06:54 PM
how can i subtotal on a text value - ex. every Monday? Jake Excel Worksheet Functions 1 April 8th 05 02:21 AM


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