A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need help creating a function



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2008, 03:19 AM posted to microsoft.public.excel.worksheet.functions
chrspty
external usenet poster
 
Posts: 2
Default Need help creating a function

I have a spreadsheet that compiles a specific incentive given to customers.
I need to be able to total the number of people who received the incentive
based on the date they moved in. I want to create this on a "totals" sheet
within my workbook. I can figure out how to total all the incentives given
but not how to total by specific date.

Thanks to anyone that can help me.
  #2  
Old August 1st, 2008, 03:45 AM posted to microsoft.public.excel.worksheet.functions
smartin
external usenet poster
 
Posts: 780
Default Need help creating a function

chrspty wrote:
I have a spreadsheet that compiles a specific incentive given to customers.
I need to be able to total the number of people who received the incentive
based on the date they moved in. I want to create this on a "totals" sheet
within my workbook. I can figure out how to total all the incentives given
but not how to total by specific date.

Thanks to anyone that can help me.


Are you familiar with pivot tables? They offer a straightforward solution.

I'm abbreviating a bit here but hopefully you can fill in the blanks.
Select your table of customers and dates, Data | Pivot Table. Place your
date in the "row" area and customers in the "data" area. This should
by default give you customer counts by date.
  #3  
Old August 1st, 2008, 04:48 PM posted to microsoft.public.excel.worksheet.functions
J Sedoff[_3_]
external usenet poster
 
Posts: 39
Default Need help creating a function

You could also use a sumif() or a countif() function, although for a general
reporting purpose, PivotTables are better (although a little more advanced
and sometimes more frustrating to use).

If you have each date listed on your "Totals" sheet in Column B; Sheet2,
Column B holds the customers date, and Column C contains the price of the
incentive.

For your daily incentives total:
=SUMIF(Sheet2!B:B,Totals!B2,Sheet2!C:C)

If you just want to know how many you handed out on that day, use the formula:
=COUNTIF(Sheet2!B:B,Sheet1!B2)

Hope this helps, Jim
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.