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

I have 2 worksheets in my workbook. The 1st worksheet is a datase of part
numbers and classification codes. It has about 30,000 part numbers and 100 or
more classification codes. The 2nd worksheet is where I enter part numbers to
get the classification code. I'm using a vlookup on sheet 2 to reference part
numbers on sheet 1. When I enter the part number, I also enter cost & weight,
and excel provides the correct classification code.

However, I need to summarize by classification the total cost & weight.

I have a table on sheet 2 that will do that, but I would like excel to
automatically populate the classification code. I was able to do this with
nested IF functions, but it stops at 7 or 8 variables.

In the column of classification codes, row 1 will always be row 1 in the
summary table. But the classification code in row 2 may or may not match row
1. Sometimes row 1 through 15 will be the same and row 16 will be different.
Or Rows 1-4 are the same, row 5 is different than rows 1-4, rows 6-10 are the
same as 5, and row 11 is the same as rows 1-4.

Is there a formula where excel can see a change in value and return that new
value?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Excel formula needed

Have you looked at SUMIF and COUNTIF ?

Basically:

=SUMIF(class_code_range,class_code,cost_range)

Hope this helps.

Pete

On Oct 2, 4:58*pm, Big Dave <Big
wrote:
I have 2 worksheets in my workbook. The 1st worksheet is a datase of part
numbers and classification codes. It has about 30,000 part numbers and 100 or
more classification codes. The 2nd worksheet is where I enter part numbers to
get the classification code. I'm using a vlookup on sheet 2 to reference part
numbers on sheet 1. When I enter the part number, I also enter cost & weight,
and excel provides the correct classification code.

However, I need to summarize by classification the total cost & weight.

I have a table on sheet 2 that will do that, but I would like excel to
automatically populate the classification code. I was able to do this with
nested IF functions, but it stops at 7 or 8 variables.

In the column of classification codes, row 1 will always be row 1 in the
summary table. But the classification code in row 2 may or may not match row
1. Sometimes row 1 through 15 will be the same and row 16 will be different.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel formula needed

Thanks, Pete.
I have the table set up to sum the costs and weights as soon as a
classification code is populated. What I am doing right now is a
copy-paste(value) from my entry form. It's just a little more complicated
when I have 10 or 11 classification codes to copy & paste.

It would be a lot easier if excel could look at that column and
automatically populate the classification codes.

"Pete_UK" wrote:

Have you looked at SUMIF and COUNTIF ?

Basically:

=SUMIF(class_code_range,class_code,cost_range)

Hope this helps.

Pete

On Oct 2, 4:58 pm, Big Dave <Big
wrote:
I have 2 worksheets in my workbook. The 1st worksheet is a datase of part
numbers and classification codes. It has about 30,000 part numbers and 100 or
more classification codes. The 2nd worksheet is where I enter part numbers to
get the classification code. I'm using a vlookup on sheet 2 to reference part
numbers on sheet 1. When I enter the part number, I also enter cost & weight,
and excel provides the correct classification code.

However, I need to summarize by classification the total cost & weight.

I have a table on sheet 2 that will do that, but I would like excel to
automatically populate the classification code. I was able to do this with
nested IF functions, but it stops at 7 or 8 variables.

In the column of classification codes, row 1 will always be row 1 in the
summary table. But the classification code in row 2 may or may not match row
1. Sometimes row 1 through 15 will be the same and row 16 will be different.
Or Rows 1-4 are the same, row 5 is different than rows 1-4, rows 6-10 are the
same as 5, and row 11 is the same as rows 1-4.

Is there a formula where excel can see a change in value and return that new
value?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Excel formula needed

You can always use pivot tables. Pivot your sheet 1, grab class cd as your
row field, then drop in cost and weight as data fields. Right-click on each
to ensure they are set to Sum, not count. Whenever new ones come in, you can
right-click on the pivot and hit refresh data. Can also set the pivot to
refresh on open in Table Options...

"Big Dave" wrote:

Thanks, Pete.
I have the table set up to sum the costs and weights as soon as a
classification code is populated. What I am doing right now is a
copy-paste(value) from my entry form. It's just a little more complicated
when I have 10 or 11 classification codes to copy & paste.

It would be a lot easier if excel could look at that column and
automatically populate the classification codes.

"Pete_UK" wrote:

Have you looked at SUMIF and COUNTIF ?

Basically:

=SUMIF(class_code_range,class_code,cost_range)

Hope this helps.

Pete

On Oct 2, 4:58 pm, Big Dave <Big
wrote:
I have 2 worksheets in my workbook. The 1st worksheet is a datase of part
numbers and classification codes. It has about 30,000 part numbers and 100 or
more classification codes. The 2nd worksheet is where I enter part numbers to
get the classification code. I'm using a vlookup on sheet 2 to reference part
numbers on sheet 1. When I enter the part number, I also enter cost & weight,
and excel provides the correct classification code.

However, I need to summarize by classification the total cost & weight.

I have a table on sheet 2 that will do that, but I would like excel to
automatically populate the classification code. I was able to do this with
nested IF functions, but it stops at 7 or 8 variables.

In the column of classification codes, row 1 will always be row 1 in the
summary table. But the classification code in row 2 may or may not match row
1. Sometimes row 1 through 15 will be the same and row 16 will be different.
Or Rows 1-4 are the same, row 5 is different than rows 1-4, rows 6-10 are the
same as 5, and row 11 is the same as rows 1-4.

Is there a formula where excel can see a change in value and return that new
value?



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
Excel Formula Needed Barb Manjarres Excel Worksheet Functions 2 September 14th 08 08:31 AM
Excel Formula needed Coopster8 Excel Discussion (Misc queries) 15 June 5th 07 11:56 PM
Excel formula - help needed! b1888 Excel Worksheet Functions 7 June 7th 06 01:35 PM
Excel - formula help needed GimmeStars Excel Discussion (Misc queries) 1 January 31st 06 05:12 PM
Excel formula help needed SteveFox Excel Worksheet Functions 2 November 23rd 05 12:52 AM


All times are GMT +1. The time now is 02:21 AM.

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"