Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Looking up whether one item has a certain matching item

Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm overlooking?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Looking up whether one item has a certain matching item

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Looking up whether one item has a certain matching item

Just to check, in my example the ABCD along the top and 1-8 down the side are
meant to be the column and row designators that are in excel when you open
the sheet, thus items under the first A (E, C and D) are my unique names and
the numbers are the qualitative characteristics these names can have
assigned.

Will the countif work if the numbers in column B of the example aren't
numbers but qualitative data, ie each 3 is actually the word small, 4 medium
and 6 large? (that's actually what I'm dealing with, I used numbers for the
example)

Thanks a lot for your help,

Tom

"Ashish Mathur" wrote:

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Looking up whether one item has a certain matching item

Hi

Please try out my solution. Also, I am confused about your last para -
column B already has text values, column C has numbers. Please clarify

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Just to check, in my example the ABCD along the top and 1-8 down the side
are
meant to be the column and row designators that are in excel when you open
the sheet, thus items under the first A (E, C and D) are my unique names
and
the numbers are the qualitative characteristics these names can have
assigned.

Will the countif work if the numbers in column B of the example aren't
numbers but qualitative data, ie each 3 is actually the word small, 4
medium
and 6 large? (that's actually what I'm dealing with, I used numbers for
the
example)

Thanks a lot for your help,

Tom

"Ashish Mathur" wrote:

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A,
i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it,
so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look
it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default Looking up whether one item has a certain matching item

Hi

On your summary sheet, with E in A2, enter in B2
=SUMPRODUCT((Sheet1!$A$2:$A$1000=$A2)*(Sheet1!($B$ 2:$B$1000="Small"))

Change the ranges to suit, but ensure that they are of equal size.
--
Regards
Roger Govier

Thocow wrote:
Just to check, in my example the ABCD along the top and 1-8 down the side are
meant to be the column and row designators that are in excel when you open
the sheet, thus items under the first A (E, C and D) are my unique names and
the numbers are the qualitative characteristics these names can have
assigned.

Will the countif work if the numbers in column B of the example aren't
numbers but qualitative data, ie each 3 is actually the word small, 4 medium
and 6 large? (that's actually what I'm dealing with, I used numbers for the
example)

Thanks a lot for your help,

Tom

"Ashish Mathur" wrote:

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Looking up whether one item has a certain matching item

Hi Roger

I think you've understood my sample sheet better then Ashish, (ashish in the
sample sheet cell A1 contains E, thus column A has all letters in, column B
all numbers, columns C&D are both empty).

Roger, your solution tells me which items have small written next to them
but only before i've pulled them into single lines, i.e only before the
spreadsheet has become
E
C
D

It's after I've got it into this format that I want to know if each letter
ever had the word small by it? Thanks,

Tom

"Roger Govier" wrote:

Hi

On your summary sheet, with E in A2, enter in B2
=SUMPRODUCT((Sheet1!$A$2:$A$1000=$A2)*(Sheet1!($B$ 2:$B$1000="Small"))

Change the ranges to suit, but ensure that they are of equal size.
--
Regards
Roger Govier

Thocow wrote:
Just to check, in my example the ABCD along the top and 1-8 down the side are
meant to be the column and row designators that are in excel when you open
the sheet, thus items under the first A (E, C and D) are my unique names and
the numbers are the qualitative characteristics these names can have
assigned.

Will the countif work if the numbers in column B of the example aren't
numbers but qualitative data, ie each 3 is actually the word small, 4 medium
and 6 large? (that's actually what I'm dealing with, I used numbers for the
example)

Thanks a lot for your help,

Tom

"Ashish Mathur" wrote:

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?


.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default Looking up whether one item has a certain matching item

Hi

Sorry my original formula has an extraneous ( inserted.
Anyway, to get the answer you want.

=IF(SUMPRODUCT((Sheet1!$A$2:$A$1000=$A2)*(Sheet1!( $B$2:$B$1000="Small")),"Yes","No")

For future posting, it is always better to post exactly what you are
looking for, with an example.
It was misleading in your first post by saying you were looking for
Numbers, when in fact you were looking for text.

--
Regards
Roger Govier

Thocow wrote:
Hi Roger

I think you've understood my sample sheet better then Ashish, (ashish in the
sample sheet cell A1 contains E, thus column A has all letters in, column B
all numbers, columns C&D are both empty).

Roger, your solution tells me which items have small written next to them
but only before i've pulled them into single lines, i.e only before the
spreadsheet has become
E
C
D

It's after I've got it into this format that I want to know if each letter
ever had the word small by it? Thanks,

Tom

"Roger Govier" wrote:

Hi

On your summary sheet, with E in A2, enter in B2
=SUMPRODUCT((Sheet1!$A$2:$A$1000=$A2)*(Sheet1!($B$ 2:$B$1000="Small"))

Change the ranges to suit, but ensure that they are of equal size.
--
Regards
Roger Govier

Thocow wrote:
Just to check, in my example the ABCD along the top and 1-8 down the side are
meant to be the column and row designators that are in excel when you open
the sheet, thus items under the first A (E, C and D) are my unique names and
the numbers are the qualitative characteristics these names can have
assigned.

Will the countif work if the numbers in column B of the example aren't
numbers but qualitative data, ie each 3 is actually the word small, 4 medium
and 6 large? (that's actually what I'm dealing with, I used numbers for the
example)

Thanks a lot for your help,

Tom

"Ashish Mathur" wrote:

Hi,

1. Select column B2:B500 (I have assumed that row 2 is the header row)
2. Go to Data Filter Advanced Filter Copy to another location
3. In the list range, select B2:B500
4. Leave the criteria range blank
5. In the copy to box, select any blank cell on the existing sheet
6. When you click on OK, you will get all the unique names from column B.
Let's say the unique items get listed in range D2:D10
7. In E3, enter if(countif($B$3:$B$500,D3)=3,"Yes","No") and copy down

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Thocow" wrote in message
...
Hi, say if I had a spreadsheet as follows:
A B C D
1 E 3
2 E 6
3 E 6
4 C 6
5 C 6
6 C 4
7 D 4
8 D 3

I want to run a function that will return a single item from column A, i.e
my new column will contain:
E
C
D

And I want the function to tell me if this letter had a 3 next to it, so
it
would return:
E Yes
C No
D Yes

Obviously I'm applying this to a much longer list or I'd manually look it
up, I'm sure there must be a simple way of doing this which I'm
overlooking?


.

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
Macro to ask for a item# and then show all details for that item Durai Excel Discussion (Misc queries) 5 December 4th 09 08:17 PM
To find rate of each item from item.xls and to copy price.xls pol Excel Discussion (Misc queries) 7 July 16th 09 12:49 AM
Item numbers result in item description in next field in Excel Cheryl MM Excel Worksheet Functions 1 February 20th 07 03:51 PM
Make typing "jump" to matching item(s) in drop-down list? Kathy Excel Discussion (Misc queries) 4 November 22nd 05 10:25 PM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM


All times are GMT +1. The time now is 05:42 AM.

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"