ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   extracting info related to maching entries (https://www.excelbanter.com/excel-discussion-misc-queries/111750-extracting-info-related-maching-entries.html)

CraigSA

extracting info related to maching entries
 
I have a table with various fields of information in each cell.
one column has a list of names, these are repeated randomly throughout the
column.
i want to creat a chart from information relating to each name. So I need to
search through the list and wherever the name entry equals for example, aaa
in column b, i need the related info for each maching name from column A.

So if i have:
1 aaa
2 bbb
3 ccc
4 aaa
5 aaa
6 ccc

I need to use values 1, 4 and 5 relating to aaa only to for example,
calculate an average for aaa.





paul

extracting info related to maching entries
 
for your example
=SUMIF(B1:B6,A11,A1:A6)/COUNTIF(B1:B6,A11)
a11 is any cell where you type your name you want the results for
--
paul

remove nospam for email addy!



"CraigSA" wrote:

I have a table with various fields of information in each cell.
one column has a list of names, these are repeated randomly throughout the
column.
i want to creat a chart from information relating to each name. So I need to
search through the list and wherever the name entry equals for example, aaa
in column b, i need the related info for each maching name from column A.

So if i have:
1 aaa
2 bbb
3 ccc
4 aaa
5 aaa
6 ccc

I need to use values 1, 4 and 5 relating to aaa only to for example,
calculate an average for aaa.





Bob Phillips

extracting info related to maching entries
 
Select B1:b20 and in the formula bar enter

=IF(ISERROR(SMALL(IF(A1:A20="aaa",ROW($A1:$A20),"" ),ROW($A1:$A20))),"",SMALL
(IF(A1:A20="aaa",ROW($A1:$A20),""),ROW($A1:$A20)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"CraigSA" wrote in message
...
I have a table with various fields of information in each cell.
one column has a list of names, these are repeated randomly throughout the
column.
i want to creat a chart from information relating to each name. So I need

to
search through the list and wherever the name entry equals for example,

aaa
in column b, i need the related info for each maching name from column A.

So if i have:
1 aaa
2 bbb
3 ccc
4 aaa
5 aaa
6 ccc

I need to use values 1, 4 and 5 relating to aaa only to for example,
calculate an average for aaa.







CraigSA

extracting info related to maching entries
 
Ok that wasn't too difficult but now how would i be able to create a chart
for a specific name to show each related value.
I don't know of any way to do this directly in the charting function so
would i have to first create a new table with only the values relating to
each name?

like
1 aaa
4 aaa
5 aaa
to make the chart from these.

how do you create a new table like this from taking random distributed
entries in the origional table. its easy to extract the info to do a
calculation in one cell but how would i list the values in a new location?

"CraigSA" wrote:

I have a table with various fields of information in each cell.
one column has a list of names, these are repeated randomly throughout the
column.
i want to creat a chart from information relating to each name. So I need to
search through the list and wherever the name entry equals for example, aaa
in column b, i need the related info for each maching name from column A.

So if i have:
1 aaa
2 bbb
3 ccc
4 aaa
5 aaa
6 ccc

I need to use values 1, 4 and 5 relating to aaa only to for example,
calculate an average for aaa.






All times are GMT +1. The time now is 03:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com