A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula to calculate Latest Cost (inventory valuation)



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2010, 07:45 PM posted to microsoft.public.excel.worksheet.functions
Curtis[_6_]
external usenet poster
 
Posts: 18
Default Formula to calculate Latest Cost (inventory valuation)

I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product by
division. In other words the last purchase for the month and the associated
purchase price.

Thanks




--
col
  #2  
Old April 29th, 2010, 08:34 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Formula to calculate Latest Cost (inventory valuation)

You can do that with this array* formula:


--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product by
division. In other words the last purchase for the month and the
associated
purchase price.

Thanks




--
col



  #3  
Old April 29th, 2010, 08:50 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Formula to calculate Latest Cost (inventory valuation)

doh...

And that array formula would be this (forgot to include it!)

=INDEX(D,MAX(IF(LARGE((B2:B10=Z1)*(K2:K10=Z2)*(J 2:J10),1)=(B2:B10=Z1)*(K2:K10=Z2)*(J2:J10),ROW(K2: K10))))

This assumes that Z1 and Z2 are the product and division, repsectively, that
you want to look up. In the event that the same product from the same
division was has two different prices for the same day, the later record
(larger row) is returned. Remember that array formulas must be confirmed
using Ctrl+Shift+Enter, not just Enter.

--
Best Regards,

Luke M
"Luke M" wrote in message
...
You can do that with this array* formula:


--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product by
division. In other words the last purchase for the month and the
associated
purchase price.

Thanks




--
col





  #4  
Old April 29th, 2010, 09:25 PM posted to microsoft.public.excel.worksheet.functions
JBoulton
external usenet poster
 
Posts: 47
Default Formula to calculate Latest Cost (inventory valuation)

O6 contains: =MAX(J:J) and gives you the most recent day
P6 contains your part number
Q6 contains your division
R6 contains: =SUMPRODUCT(--(J:J=O6),--(K:K=P6),--(B:B=Q6),(D))


"Curtis" wrote:

I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product by
division. In other words the last purchase for the month and the associated
purchase price.

Thanks




--
col

  #5  
Old April 29th, 2010, 11:58 PM posted to microsoft.public.excel.worksheet.functions
Curtis[_6_]
external usenet poster
 
Posts: 18
Default Formula to calculate Latest Cost (inventory valuation)

This formula is not returning the correct value but rather it is returning a
value of $80.05 for E90 for this division when as you can see below the price
should read $82.15 (see excerpt table from source worksheet below)

COLUMN B COL D COL J COL K

Product Unit Cost Receipt Date Division
E10 76.73 3/26/2010 North - row 620
E90 82.15 3/26/2010 North - row 621
E10 76.73 3/27/2010 North - row 670
E90 82.15 3/27/2010 North - row 671
E10 76.73 3/30/2010 North - row 697

I need the formula to return the purchase price of the last purchase

Thanks
--
ce


"Luke M" wrote:

doh...

And that array formula would be this (forgot to include it!)

=INDEX(D,MAX(IF(LARGE((B2:B10=Z1)*(K2:K10=Z2)*(J 2:J10),1)=(B2:B10=Z1)*(K2:K10=Z2)*(J2:J10),ROW(K2: K10))))

This assumes that Z1 and Z2 are the product and division, repsectively, that
you want to look up. In the event that the same product from the same
division was has two different prices for the same day, the later record
(larger row) is returned. Remember that array formulas must be confirmed
using Ctrl+Shift+Enter, not just Enter.

--
Best Regards,

Luke M
"Luke M" wrote in message
...
You can do that with this array* formula:


--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product by
division. In other words the last purchase for the month and the
associated
purchase price.

Thanks




--
col





.

  #6  
Old April 30th, 2010, 02:13 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Formula to calculate Latest Cost (inventory valuation)

Where is the $80.05 located in your table?

With only the sample data you gave, the formula is working on my end. Note
that all of the ranges within the IF function need to be of equal length,
and cannot call out the entire column. (possible source of error?)

--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
This formula is not returning the correct value but rather it is returning
a
value of $80.05 for E90 for this division when as you can see below the
price
should read $82.15 (see excerpt table from source worksheet below)

COLUMN B COL D COL J COL K

Product Unit Cost Receipt Date Division
E10 76.73 3/26/2010 North - row 620
E90 82.15 3/26/2010 North - row 621
E10 76.73 3/27/2010 North - row 670
E90 82.15 3/27/2010 North - row 671
E10 76.73 3/30/2010 North - row 697

I need the formula to return the purchase price of the last purchase

Thanks
--
ce


"Luke M" wrote:

doh...

And that array formula would be this (forgot to include it!)

=INDEX(D,MAX(IF(LARGE((B2:B10=Z1)*(K2:K10=Z2)*(J 2:J10),1)=(B2:B10=Z1)*(K2:K10=Z2)*(J2:J10),ROW(K2: K10))))

This assumes that Z1 and Z2 are the product and division, repsectively,
that
you want to look up. In the event that the same product from the same
division was has two different prices for the same day, the later record
(larger row) is returned. Remember that array formulas must be confirmed
using Ctrl+Shift+Enter, not just Enter.

--
Best Regards,

Luke M
"Luke M" wrote in message
...
You can do that with this array* formula:


--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product
by
division. In other words the last purchase for the month and the
associated
purchase price.

Thanks




--
col




.



  #7  
Old May 4th, 2010, 05:28 PM posted to microsoft.public.excel.worksheet.functions
Curtis[_6_]
external usenet poster
 
Posts: 18
Default Formula to calculate Latest Cost (inventory valuation)

Still not getting the latest cost price keep in mind I have removed the
divisions from the calculation

In the source sheet
COL AB = recent cost
COL W = latest purchase date (format mm/dd/yyyy)
COL A = Part number

Thanks

ce



--
ce


"Luke M" wrote:

Where is the $80.05 located in your table?

With only the sample data you gave, the formula is working on my end. Note
that all of the ranges within the IF function need to be of equal length,
and cannot call out the entire column. (possible source of error?)

--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
This formula is not returning the correct value but rather it is returning
a
value of $80.05 for E90 for this division when as you can see below the
price
should read $82.15 (see excerpt table from source worksheet below)

COLUMN B COL D COL J COL K

Product Unit Cost Receipt Date Division
E10 76.73 3/26/2010 North - row 620
E90 82.15 3/26/2010 North - row 621
E10 76.73 3/27/2010 North - row 670
E90 82.15 3/27/2010 North - row 671
E10 76.73 3/30/2010 North - row 697

I need the formula to return the purchase price of the last purchase

Thanks
--
ce


"Luke M" wrote:

doh...

And that array formula would be this (forgot to include it!)

=INDEX(D,MAX(IF(LARGE((B2:B10=Z1)*(K2:K10=Z2)*(J 2:J10),1)=(B2:B10=Z1)*(K2:K10=Z2)*(J2:J10),ROW(K2: K10))))

This assumes that Z1 and Z2 are the product and division, repsectively,
that
you want to look up. In the event that the same product from the same
division was has two different prices for the same day, the later record
(larger row) is returned. Remember that array formulas must be confirmed
using Ctrl+Shift+Enter, not just Enter.

--
Best Regards,

Luke M
"Luke M" wrote in message
...
You can do that with this array* formula:


--
Best Regards,

Luke M
"Curtis" .(do not spam) wrote in message
...
I have a worksheet that contains the daily purchases for 4 products.

column B contains the products
column D contains the purchase price
column K contains the division
column J contains the day of the month

I need a formula that will pull the latest purchase price by product
by
division. In other words the last purchase for the month and the
associated
purchase price.

Thanks




--
col




.



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.