Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default Odd functionality

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Odd functionality

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Odd functionality

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default Odd functionality

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default Odd functionality

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
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
Go to functionality [email protected] Excel Worksheet Functions 0 November 7th 06 10:08 PM
DES Encryption functionality Michael P Excel Worksheet Functions 4 November 2nd 06 08:14 AM
Checkbox functionality Basia Excel Discussion (Misc queries) 2 June 19th 06 04:42 PM
Losing Add-Inn Functionality Ben Excel Discussion (Misc queries) 0 April 20th 05 06:06 AM
Template functionality in Excel Abi Excel Discussion (Misc queries) 4 January 14th 05 12:23 AM


All times are GMT +1. The time now is 03:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"