Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rlmccants
 
Posts: n/a
Default Conditional Lookup Functions


I am trying to return the Cell Address based on a lookup value in my
SalesID Range and a SalesPrice that is less than zero (I have numerous
product IDS and records associated with the same Sales ID).

Can anyone help?


--
Rlmccants
------------------------------------------------------------------------
Rlmccants's Profile: http://www.excelforum.com/member.php...o&userid=26097
View this thread: http://www.excelforum.com/showthread...hreadid=395007

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Rlmccants,

Post a small sample of your data.

HTH,
Bernie
MS Excel MVP


"Rlmccants" wrote in message
...

I am trying to return the Cell Address based on a lookup value in my
SalesID Range and a SalesPrice that is less than zero (I have numerous
product IDS and records associated with the same Sales ID).

Can anyone help?


--
Rlmccants
------------------------------------------------------------------------
Rlmccants's Profile: http://www.excelforum.com/member.php...o&userid=26097
View this thread: http://www.excelforum.com/showthread...hreadid=395007



  #3   Report Post  
Rlmccants
 
Posts: n/a
Default


Sales Order ID
178474
178474
178474
178474
178474
178474

Product ID
1730
1740
1800
1410
1000D
1605

Sales Price
$9,500.00
$4,950.00
$5,000.00
$0.00
($21,550.00)
$52,500.00

SalesOrderID, Product ID, and Sales Price represent 3 separate columns.
The negative sales amount ($21,550) is a discount that needs to be
prorated among the other products sold on this invoice. I've developed
a formula that performs the calculation, however it currently uses an
absolute cell reference to identify the Discount - which requires me to
manually update this cell reference for each change in Sales Order ID.
Since I have 10,000 records representing roughly 2,000 sales, I need to
find a scaleable solution.

I've been trying to use the Address Function along with Index and
Match, but I haven't had any luck yet.

Any help you can provide would be great.


--
Rlmccants
------------------------------------------------------------------------
Rlmccants's Profile: http://www.excelforum.com/member.php...o&userid=26097
View this thread: http://www.excelforum.com/showthread...hreadid=395007

  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Rlmccants,

With 178474 in cell D2, and with Sales Order ID in column A, Product ID in column B, and Sales Price
in column C, this formula will return -21550:

=SUMPRODUCT((A2:A10000=D2)*(C2:C10000<0)*(C2:C1000 0))

HTH,
Bernie
MS Excel MVP


"Rlmccants" wrote in message
...

Sales Order ID
178474
178474
178474
178474
178474
178474

Product ID
1730
1740
1800
1410
1000D
1605

Sales Price
$9,500.00
$4,950.00
$5,000.00
$0.00
($21,550.00)
$52,500.00

SalesOrderID, Product ID, and Sales Price represent 3 separate columns.
The negative sales amount ($21,550) is a discount that needs to be
prorated among the other products sold on this invoice. I've developed
a formula that performs the calculation, however it currently uses an
absolute cell reference to identify the Discount - which requires me to
manually update this cell reference for each change in Sales Order ID.
Since I have 10,000 records representing roughly 2,000 sales, I need to
find a scaleable solution.

I've been trying to use the Address Function along with Index and
Match, but I haven't had any luck yet.

Any help you can provide would be great.


--
Rlmccants
------------------------------------------------------------------------
Rlmccants's Profile: http://www.excelforum.com/member.php...o&userid=26097
View this thread: http://www.excelforum.com/showthread...hreadid=395007



  #5   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Rlmccants,

Actually, on second thought, if you only have one negative number for each sales ticket, you could
either

1) use a pivot table, selecting MIN of sales
2) use a data filter, to show only negative numbers

Also, you should change the formula to

=SUMPRODUCT(($A$2:$A$10000=$D2)*($C$2:$C$10000<0)* ($C$2:$C$10000))

so that if you enter it into cell E2, you could copy it down to match a list in column D. You could
create a list of unique values easily by using the advanced filter on A1:A10000 , clicking unique
records only and setting the copy to destination to D1.

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Rlmccants,

With 178474 in cell D2, and with Sales Order ID in column A, Product ID in column B, and Sales
Price in column C, this formula will return -21550:

=SUMPRODUCT((A2:A10000=D2)*(C2:C10000<0)*(C2:C1000 0))

HTH,
Bernie
MS Excel MVP


"Rlmccants" wrote in message
...

Sales Order ID
178474
178474
178474
178474
178474
178474

Product ID
1730
1740
1800
1410
1000D
1605

Sales Price
$9,500.00
$4,950.00
$5,000.00
$0.00
($21,550.00)
$52,500.00

SalesOrderID, Product ID, and Sales Price represent 3 separate columns.
The negative sales amount ($21,550) is a discount that needs to be
prorated among the other products sold on this invoice. I've developed
a formula that performs the calculation, however it currently uses an
absolute cell reference to identify the Discount - which requires me to
manually update this cell reference for each change in Sales Order ID.
Since I have 10,000 records representing roughly 2,000 sales, I need to
find a scaleable solution.

I've been trying to use the Address Function along with Index and
Match, but I haven't had any luck yet.

Any help you can provide would be great.


--
Rlmccants
------------------------------------------------------------------------
Rlmccants's Profile: http://www.excelforum.com/member.php...o&userid=26097
View this thread: http://www.excelforum.com/showthread...hreadid=395007





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
Conditional Lookup on Multiple Criteria TBarker Excel Worksheet Functions 1 June 22nd 05 12:28 AM
Allow refence in the "table_array" position of Lookup functions fcjssc Excel Worksheet Functions 1 March 3rd 05 01:38 PM
Multiple FIND functions in Conditional Formatting RocketFuMaster Excel Worksheet Functions 2 March 2nd 05 06:09 PM
Lookup Functions Sharon Excel Worksheet Functions 6 February 20th 05 05:04 AM
Excel Lookup Functions Paul Adams Excel Worksheet Functions 1 November 10th 04 02:40 PM


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