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

My Data Table looks like this:

Qty Buyer Seller ChargedSide
2 BOX980 BOX226 Buyer
30 BOX226 BOX917 Seller


I am trying to create a new table like this:

Charge Credit
BOX980 Formula (2 x $50) Formula (0 x $25)
BOX917 Formula (30 x 50) Formula (0 x $25)
BOX226 Formula (0 x 50) Formula (2x25 + 30x25)

So for each customer in ColA, look at the data table, determine whether the
charder side is the buyer or seller, and then apply the formula to determine
the Charge or Credit.

Thank you in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Invoicing Problem

Using the ranges below:

A B C D
Qty Buyer Seller ChargedSide <== Row 1
2 BOX980 BOX226 Buyer
30 BOX226 BOX917 Seller
5 BOX980 BOX226 Buyer
10 BOX226 BOX917 Seller

A B C
Charge Credit <== Row 8
BOX980 350 0
BOX917 2000 0
BOX226 0 1175

in B9:

=(SUMPRODUCT(--($B$2:$B$5=$A9),--($D$2:$D$5=$B$1),($A$2:$A$5))+SUMPRODUCT(--($C$2:$C$5=$A9),--($D$2:$D$5=$C$1),($A$2:$A$5)))*50

in C9:

=(SUMPRODUCT(--($C$2:$C$5=$A9),--($D$2:$D$5<$C$1)*($A$2:$A$5))+SUMPRODUCT(--($B$2:$B$5=$A9),--($D$2:$D$5<$B$1),($A$2:$A$5)))*25

I have allowed for multiple entries of a "Buyer"/"Seller"

HTH


"carl" wrote:

My Data Table looks like this:

Qty Buyer Seller ChargedSide
2 BOX980 BOX226 Buyer
30 BOX226 BOX917 Seller


I am trying to create a new table like this:

Charge Credit
BOX980 Formula (2 x $50) Formula (0 x $25)
BOX917 Formula (30 x 50) Formula (0 x $25)
BOX226 Formula (0 x 50) Formula (2x25 + 30x25)

So for each customer in ColA, look at the data table, determine whether the
charder side is the buyer or seller, and then apply the formula to determine
the Charge or Credit.

Thank you in advance.

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
Invoicing with Excel Tony New Users to Excel 1 May 2nd 07 10:44 AM
need help with invoicing DUN RITE ROOFING New Users to Excel 1 August 11th 06 10:06 PM
Time and Invoicing cadman Excel Discussion (Misc queries) 0 June 28th 05 01:22 AM
Invoicing Sir Paul Excel Worksheet Functions 0 January 12th 05 04:01 AM
credit invoicing David J Excel Discussion (Misc queries) 1 December 17th 04 07:00 AM


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