Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I had submitted a previous question but it was getting confusing and I
believe head ing in the worng direction. Here is the situation. I have a document with 2 sheets. On the first sheet I have all of the sales data. 1 line for each item. The second sheet has totals. I am trying to calculate the sales on each day but I want to exclude the returns. What I want to say is....Give me the total sales for xx/xx/xxxx(has its own cell) but exclude returns(start with "600) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Does this mean you have 3 columns of data:
A column of dates A column of codes, some of which start with 600 A column of numbers to be summed You want to sum the numbers for a specific date but exclude those that have a code that starts with 600. Is this code a number like 612 or is it maybe an alpanumeric like 600-AA-101? Biff "Amber" wrote in message ... I had submitted a previous question but it was getting confusing and I believe head ing in the worng direction. Here is the situation. I have a document with 2 sheets. On the first sheet I have all of the sales data. 1 line for each item. The second sheet has totals. I am trying to calculate the sales on each day but I want to exclude the returns. What I want to say is....Give me the total sales for xx/xx/xxxx(has its own cell) but exclude returns(start with "600) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The SUMPRODUCT function should work for you.
=SUMPRODUCT(--(Sheet1!A1:A10=A1),--(LEFT(Sheet1!B1:B10,3)<"600"),Sheet1!C1:C10) This example assumes that your data in Worksheet 1 is stored like this: A1:A10 is your dates. B1:B10 is your transaction code. C1:C10 is your dollar amount. You can adjust these to match your actual data. I've also assumed that the date you are trying to match to has been stored in cell A1 of worksheet 2. Again, adjust as needed. HTH, Elkar "Amber" wrote: I had submitted a previous question but it was getting confusing and I believe head ing in the worng direction. Here is the situation. I have a document with 2 sheets. On the first sheet I have all of the sales data. 1 line for each item. The second sheet has totals. I am trying to calculate the sales on each day but I want to exclude the returns. What I want to say is....Give me the total sales for xx/xx/xxxx(has its own cell) but exclude returns(start with "600) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
When I key this function based off of the information in my data, I get #VALUE!
What could the problem be? Any ideas????? "Elkar" wrote: The SUMPRODUCT function should work for you. =SUMPRODUCT(--(Sheet1!A1:A10=A1),--(LEFT(Sheet1!B1:B10,3)<"600"),Sheet1!C1:C10) This example assumes that your data in Worksheet 1 is stored like this: A1:A10 is your dates. B1:B10 is your transaction code. C1:C10 is your dollar amount. You can adjust these to match your actual data. I've also assumed that the date you are trying to match to has been stored in cell A1 of worksheet 2. Again, adjust as needed. HTH, Elkar "Amber" wrote: I had submitted a previous question but it was getting confusing and I believe head ing in the worng direction. Here is the situation. I have a document with 2 sheets. On the first sheet I have all of the sales data. 1 line for each item. The second sheet has totals. I am trying to calculate the sales on each day but I want to exclude the returns. What I want to say is....Give me the total sales for xx/xx/xxxx(has its own cell) but exclude returns(start with "600) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Yes I do have 3 columns of data.
"T. Valko" wrote: Does this mean you have 3 columns of data: A column of dates A column of codes, some of which start with 600 A column of numbers to be summed You want to sum the numbers for a specific date but exclude those that have a code that starts with 600. Is this code a number like 612 or is it maybe an alpanumeric like 600-AA-101? Biff "Amber" wrote in message ... I had submitted a previous question but it was getting confusing and I believe head ing in the worng direction. Here is the situation. I have a document with 2 sheets. On the first sheet I have all of the sales data. 1 line for each item. The second sheet has totals. I am trying to calculate the sales on each day but I want to exclude the returns. What I want to say is....Give me the total sales for xx/xx/xxxx(has its own cell) but exclude returns(start with "600) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Go to functionality | Excel Worksheet Functions | |||
DES Encryption functionality | Excel Worksheet Functions | |||
Checkbox functionality | Excel Discussion (Misc queries) | |||
Losing Add-Inn Functionality | Excel Discussion (Misc queries) | |||
Template functionality in Excel | Excel Discussion (Misc queries) |