Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cebu2b
 
Posts: n/a
Default selecting values from raw data


Imagine a data sheet containing values from A to AE. These values are
text and alpha/numeric.

What I want to accomplish is to capture the values contained in column
AE which are numeric by the top five costs. List those values into
another worksheet along with four other values associated with those
numeric values.

These "captured" categories would look something like this:

Costs - Customer - Department - Item -
PN



These top five costs are contained within the rawdata under column AE,
The customer data under N, Department under O, Item under P, and PN
under R.

thanks for the help from a total newbee.....


--
cebu2b
------------------------------------------------------------------------
cebu2b's Profile: http://www.excelforum.com/member.php...o&userid=31820
View this thread: http://www.excelforum.com/showthread...hreadid=515481

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default selecting values from raw data

The LARGE( ) function will enable you to obtain the top five numeric
values in column AE of Sheet 1. In Sheet 2 you could enter this formula
in A2 (for example, with your headings in row 1):

=LARGE('Sheet 1'!AE$2:AE$20,1)

assuming that your data occupies rows 2 to 20 in Sheet 1. Copy the
formula down into A3, A4, A5, and A6, and then edit it to change the 1
at the end to 2, 3, 4, 5 etc, so that you have this:

A2: =LARGE('Sheet 1'!AE$2:AE$20,1)
A3: =LARGE('Sheet 1'!AE$2:AE$20,2)
A4: =LARGE('Sheet 1'!AE$2:AE$20,3)
A5: =LARGE('Sheet 1'!AE$2:AE$20,4)
A6: =LARGE('Sheet 1'!AE$2:AE$20,5)

although the cells will actually show the top 5 largest values from
column AE on Sheet 1.

You will then need to use the MATCH( ) function in conjunction with the
INDEX( ) function in order to return the other corresponding values in
adjacent cells, something like:

B2: =INDEX('Sheet 1'!N$2:N$20,MATCH($A2,'Sheet 1'!$AE$2:$AE$20,0))

This matches A2 in the summary sheet with its value in the raw data
sheet and returns the relative row where this occurs. The INDEX
function then uses this row number to retrieve the appropriate and
corresponding value from column N. This can be copied down into B3:B6.

The formula can also be copied across, but you will need to check that
the column reference in Sheet 1 is pointing to the correct columns O, P
and R, and then you can copy these down also.

Hope this helps.

Pete

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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Get excel to list values that occur within raw data dennis34 Excel Discussion (Misc queries) 2 October 5th 05 12:09 PM
pivot table with selection values not included in the base data confused Charts and Charting in Excel 0 June 21st 05 02:42 PM
Selecting data from a list based on entered values GrantM Excel Discussion (Misc queries) 1 December 20th 04 10:59 AM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


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