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 Return number OR sum based on two criteria

Does anyone know how to get an "either - or" kind of return. Here's a sample
of what I'm looking at:

Order ID boxes freight $$
999242849 4.00 11.51
999242850 3.00 113.43
999242851 1.00 3.08
999242851 1.00 20.75
999242852 1.00 16.61
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26

On a separate worksheet, I need to create one row for each order listing
what's in column C. Each line represents a tracking number from shipping. If
one shipment has 4 boxes (like order 999242863), I only need to pull the
$32.26 through once. But on order 999242851, there were two shipments and I
need to add them together to get $23.83. Other orders have one shipment with
one tracking number, so they are easy. I need a formula that will pull these
numbers through. I have over 7 thousand lines to deal with on a monthly
basis.

Thanks!
John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Return number OR sum based on two criteria

if I understand you, you want to bring back the total $ for orders where the
$ on each line are different, otherwise just bring back the $ on one line for
that order.

I put the data in a4:c:12, and listed a part number in cell a18. This
formula would work, unless the first line for an order with multiple $
happens to have $ that is average of all the lines for that order. Sorting
the data apprpriately would resolve that (sort by part number 1st, then by $
number second).

=IF(AVERAGE(IF($A$4:$A$12=$A18,$C$4:$C$12))=VLOOKU P($A18,$A$4:$C$12,3,FALSE),VLOOKUP($A18,$A$4:$C$12 ,3,FALSE),SUMPRODUCT(($A$4:$A$12=$A18)*($C$4:$C$12 )))

is an array formula

"John in MN" wrote:

Does anyone know how to get an "either - or" kind of return. Here's a sample
of what I'm looking at:

Order ID boxes freight $$
999242849 4.00 11.51
999242850 3.00 113.43
999242851 1.00 3.08
999242851 1.00 20.75
999242852 1.00 16.61
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26

On a separate worksheet, I need to create one row for each order listing
what's in column C. Each line represents a tracking number from shipping. If
one shipment has 4 boxes (like order 999242863), I only need to pull the
$32.26 through once. But on order 999242851, there were two shipments and I
need to add them together to get $23.83. Other orders have one shipment with
one tracking number, so they are easy. I need a formula that will pull these
numbers through. I have over 7 thousand lines to deal with on a monthly
basis.

Thanks!
John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Return number OR sum based on two criteria

Thanks, Duane! I'll give that a shot!

"duane" wrote:

if I understand you, you want to bring back the total $ for orders where the
$ on each line are different, otherwise just bring back the $ on one line for
that order.

I put the data in a4:c:12, and listed a part number in cell a18. This
formula would work, unless the first line for an order with multiple $
happens to have $ that is average of all the lines for that order. Sorting
the data apprpriately would resolve that (sort by part number 1st, then by $
number second).

=IF(AVERAGE(IF($A$4:$A$12=$A18,$C$4:$C$12))=VLOOKU P($A18,$A$4:$C$12,3,FALSE),VLOOKUP($A18,$A$4:$C$12 ,3,FALSE),SUMPRODUCT(($A$4:$A$12=$A18)*($C$4:$C$12 )))

is an array formula

"John in MN" wrote:

Does anyone know how to get an "either - or" kind of return. Here's a sample
of what I'm looking at:

Order ID boxes freight $$
999242849 4.00 11.51
999242850 3.00 113.43
999242851 1.00 3.08
999242851 1.00 20.75
999242852 1.00 16.61
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26
999242863 4.00 32.26

On a separate worksheet, I need to create one row for each order listing
what's in column C. Each line represents a tracking number from shipping. If
one shipment has 4 boxes (like order 999242863), I only need to pull the
$32.26 through once. But on order 999242851, there were two shipments and I
need to add them together to get $23.83. Other orders have one shipment with
one tracking number, so they are easy. I need a formula that will pull these
numbers through. I have over 7 thousand lines to deal with on a monthly
basis.

Thanks!
John

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
How do I return a value based on multiple possible conditions? nevermore627 Excel Worksheet Functions 4 July 21st 06 01:14 AM
Finding the Largest Number, based on two criteria BigH Excel Discussion (Misc queries) 1 February 8th 06 08:50 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
How do I show number of records that meet criteria filter CliffD Excel Discussion (Misc queries) 3 August 22nd 05 01:10 PM
Creating a certain number of entries based on a number in a cell PPV Excel Worksheet Functions 4 June 16th 05 10:25 PM


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