Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Macro Creation

I'm looking to create a macro with a sumif function (among maybe other
functions) incorporated into the code. If you could please help, I would
appreciate it!
Here's what I'm looking at: in column A I have a list of items:
Selling Salaries
Store Manger Salary
Asst Manager Salary
Employee 1 Salary
Employee 2 Salary
Utilities
Phone - Regular
Internet
Postage
(etc, etc ...)
In Column B, I have the categories by which these items are assigned
Payroll
Payroll
Payroll
Payroll
Payroll
Office Overhead
Office Overhead
Office Overhead
Office Overhead
(etc, etc...)
In column C, I have all of the $ amounts associated with these costs.

I'd like these values in column C added together (probably best with sumif
formula) based off of their assigned categories. Then, if it's possible, I'd
like to consolidate the information in column A to read what the category is
in column B. So, the end product reading:
Column A
Salary
Overhead

Column B
$$ (sum for Salary)
$$ (sum for Overhead)

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Macro Creation

Seems like a pivot table should work for you. Look at these tutorials:
http://peltiertech.com/Excel/Pivots/pivottables.htm
http://www.babeled.com/2008/07/18/ex...-manipulation/


HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Liz J" wrote:

I'm looking to create a macro with a sumif function (among maybe other
functions) incorporated into the code. If you could please help, I would
appreciate it!
Here's what I'm looking at: in column A I have a list of items:
Selling Salaries
Store Manger Salary
Asst Manager Salary
Employee 1 Salary
Employee 2 Salary
Utilities
Phone - Regular
Internet
Postage
(etc, etc ...)
In Column B, I have the categories by which these items are assigned
Payroll
Payroll
Payroll
Payroll
Payroll
Office Overhead
Office Overhead
Office Overhead
Office Overhead
(etc, etc...)
In column C, I have all of the $ amounts associated with these costs.

I'd like these values in column C added together (probably best with sumif
formula) based off of their assigned categories. Then, if it's possible, I'd
like to consolidate the information in column A to read what the category is
in column B. So, the end product reading:
Column A
Salary
Overhead

Column B
$$ (sum for Salary)
$$ (sum for Overhead)

Thanks for your help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Macro Creation

You're right. I overcomplicated it. Thanks, Ryan.

"ryguy7272" wrote:

Seems like a pivot table should work for you. Look at these tutorials:
http://peltiertech.com/Excel/Pivots/pivottables.htm
http://www.babeled.com/2008/07/18/ex...-manipulation/


HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Liz J" wrote:

I'm looking to create a macro with a sumif function (among maybe other
functions) incorporated into the code. If you could please help, I would
appreciate it!
Here's what I'm looking at: in column A I have a list of items:
Selling Salaries
Store Manger Salary
Asst Manager Salary
Employee 1 Salary
Employee 2 Salary
Utilities
Phone - Regular
Internet
Postage
(etc, etc ...)
In Column B, I have the categories by which these items are assigned
Payroll
Payroll
Payroll
Payroll
Payroll
Office Overhead
Office Overhead
Office Overhead
Office Overhead
(etc, etc...)
In column C, I have all of the $ amounts associated with these costs.

I'd like these values in column C added together (probably best with sumif
formula) based off of their assigned categories. Then, if it's possible, I'd
like to consolidate the information in column A to read what the category is
in column B. So, the end product reading:
Column A
Salary
Overhead

Column B
$$ (sum for Salary)
$$ (sum for Overhead)

Thanks for your 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
Macro creation help aquaflow Excel Programming 1 March 9th 09 04:32 PM
Macro creation Ojunera Excel Worksheet Functions 0 October 6th 08 06:28 PM
Creation of macro with an example Jothirmaya Excel Discussion (Misc queries) 2 November 30th 05 12:10 AM
Macro Creation Programming Cells Excel Discussion (Misc queries) 3 July 28th 05 06:07 PM
XML creation via a macro Sarah Dos Santos Excel Programming 1 February 10th 05 12:57 PM


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