Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Returning same value cell in a column but different row.

I'm not sure if my subject heading best explains what I'm looking for
but here is my question in greater detail.

I have a chart of data from which I pull from.

A1 = Name1
A2 = Name2
A3 = Name3
A4 = Name4
A5 = Name5

B1 = Date1
B2 = Date1
B3 = Date2
B4 = Date3
B5 = Date2

C1 = (returning value)
C2 = (returning value)
etc.

D1 = (User defined list box)

(by the way, I hate how this google group thing messes up your format
when you post a mock chart on here and screws up the symmetry of it.)

Ok, if the user choose "Date1" in D1, I want Column C to list all the
names with the corresonding date. My obstacle is that Excel seems to
only see the 1st or 2nd date and returns that name only, repeats that
same name. I'm trying to find a way to list them all. I could be
totally off, but I was thinking there was a way to say that if one
value was already listed in column C it would search the next value
and so forth until all names have been found with the corresponding
dates in Column B.

I realize I may not even have the best approach or asking too much of
Excel, so I welcome an suggestions and/or criticisms.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Returning same value cell in a column but different row.

On May 30, 7:41 pm, wrote:
I'm not sure if my subject heading best explains what I'm looking for
but here is my question in greater detail.

I have a chart of data from which I pull from.

A1 = Name1
A2 = Name2
A3 = Name3
A4 = Name4
A5 = Name5

B1 = Date1
B2 = Date1
B3 = Date2
B4 = Date3
B5 = Date2

C1 = (returning value)
C2 = (returning value)
etc.

D1 = (User defined list box)

(by the way, I hate how this google group thing messes up your format
when you post a mock chart on here and screws up the symmetry of it.)

Ok, if the user choose "Date1" in D1, I want Column C to list all the
names with the corresonding date. My obstacle is that Excel seems to
only see the 1st or 2nd date and returns that name only, repeats that
same name. I'm trying to find a way to list them all. I could be
totally off, but I was thinking there was a way to say that if one
value was already listed in column C it would search the next value
and so forth until all names have been found with the corresponding
dates in Column B.

I realize I may not even have the best approach or asking too much of
Excel, so I welcome an suggestions and/or criticisms.


If your names are in A1:A5. In C1:

=INDEX($A$1:$A$5,small(if($B$1:$B$5=$D$1,ROW($A$1: $A$5)-ROW($A
$1)+1),ROW()-ROW($C$1)+1)

This is an *array* formula, hence commit with Ctrl+Shift+Enter.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Returning same value cell in a column but different row.

Nick Hodge's site explains how to query external data. However, an Excel
worksheet can also be treated as 'external data'

http://www.nickhodge.co.uk/gui/datam...taexamples.htm

At the end of that article Nick explains how to re-run a query against an
Access database when criteria in an Excel cell changes. You can easily adapt
that from Access to Excel. When the date changes, query for all the names
related to that date.

" wrote:

I'm not sure if my subject heading best explains what I'm looking for
but here is my question in greater detail.

I have a chart of data from which I pull from.

A1 = Name1
A2 = Name2
A3 = Name3
A4 = Name4
A5 = Name5

B1 = Date1
B2 = Date1
B3 = Date2
B4 = Date3
B5 = Date2

C1 = (returning value)
C2 = (returning value)
etc.

D1 = (User defined list box)

(by the way, I hate how this google group thing messes up your format
when you post a mock chart on here and screws up the symmetry of it.)

Ok, if the user choose "Date1" in D1, I want Column C to list all the
names with the corresonding date. My obstacle is that Excel seems to
only see the 1st or 2nd date and returns that name only, repeats that
same name. I'm trying to find a way to list them all. I could be
totally off, but I was thinking there was a way to say that if one
value was already listed in column C it would search the next value
and so forth until all names have been found with the corresponding
dates in Column B.

I realize I may not even have the best approach or asking too much of
Excel, so I welcome an suggestions and/or criticisms.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Returning same value cell in a column but different row.

Thanks Vezerid, that worked like a charm. Although, I must add for
other users searching a similar solutions, I had to add the ISERROR
function to avoid the "#NUM!" to display when there were no more
values to report.

Duke Carey, thanks for the link. As of right now, I'm only working
strictly with Excel and do not need it to draw data from Access just
yet. But I will keep the link saved for such future purposes.

On May 30, 12:10 pm, Duke Carey
wrote:
Nick Hodge's site explains how to query external data. However, an Excel
worksheet can also be treated as 'external data'

http://www.nickhodge.co.uk/gui/datam...ternaldataexam...

At the end of that article Nick explains how to re-run a query against an
Access database when criteria in an Excel cell changes. You can easily adapt
that from Access to Excel. When the date changes, query for all the names
related to that date.



" wrote:
I'm not sure if my subject heading best explains what I'm looking for
but here is my question in greater detail.


I have a chart of data from which I pull from.


A1 = Name1
A2 = Name2
A3 = Name3
A4 = Name4
A5 = Name5


B1 = Date1
B2 = Date1
B3 = Date2
B4 = Date3
B5 = Date2


C1 = (returning value)
C2 = (returning value)
etc.


D1 = (User defined list box)


(by the way, I hate how this google group thing messes up your format
when you post a mock chart on here and screws up the symmetry of it.)


Ok, if the user choose "Date1" in D1, I want Column C to list all the
names with the corresonding date. My obstacle is that Excel seems to
only see the 1st or 2nd date and returns that name only, repeats that
same name. I'm trying to find a way to list them all. I could be
totally off, but I was thinking there was a way to say that if one
value was already listed in column C it would search the next value
and so forth until all names have been found with the corresponding
dates in Column B.


I realize I may not even have the best approach or asking too much of
Excel, so I welcome an suggestions and/or criticisms.- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Returning same value cell in a column but different row.

On May 30, 8:58 pm, wrote:
ThanksVezerid, that worked like a charm. Although, I must add for
other users searching a similar solutions, I had to add the ISERROR
function to avoid the "#NUM!" to display when there were no more
values to report.

Duke Carey, thanks for the link. As of right now, I'm only working
strictly with Excel and do not need it to draw data from Access just
yet. But I will keep the link saved for such future purposes.

On May 30, 12:10 pm, Duke Carey
wrote:

Nick Hodge's site explains how to query external data. However, an Excel
worksheet can also be treated as 'external data'


http://www.nickhodge.co.uk/gui/datam...ternaldataexam...


At the end of that article Nick explains how to re-run a query against an
Access database when criteria in an Excel cell changes. You can easily adapt
that from Access to Excel. When the date changes, query for all the names
related to that date.


" wrote:
I'm not sure if my subject heading best explains what I'm looking for
but here is my question in greater detail.


I have a chart of data from which I pull from.


A1 = Name1
A2 = Name2
A3 = Name3
A4 = Name4
A5 = Name5


B1 = Date1
B2 = Date1
B3 = Date2
B4 = Date3
B5 = Date2


C1 = (returning value)
C2 = (returning value)
etc.


D1 = (User defined list box)


(by the way, I hate how this google group thing messes up your format
when you post a mock chart on here and screws up the symmetry of it.)


Ok, if the user choose "Date1" in D1, I want Column C to list all the
names with the corresonding date. My obstacle is that Excel seems to
only see the 1st or 2nd date and returns that name only, repeats that
same name. I'm trying to find a way to list them all. I could be
totally off, but I was thinking there was a way to say that if one
value was already listed in column C it would search the next value
and so forth until all names have been found with the corresponding
dates in Column B.


I realize I may not even have the best approach or asking too much of
Excel, so I welcome an suggestions and/or criticisms.- Hide quoted text -


- Show quoted text -


Glad to know it worked!

Kostis



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
Returning other cells with the same value in a column, but different row. [email protected] Excel Worksheet Functions 1 May 30th 07 05:42 PM
finding cell value in another column and returning a true or fals bajanswing Excel Worksheet Functions 2 November 17th 06 08:33 PM
Highest value in column b returning column a macamarr Excel Worksheet Functions 3 April 5th 06 02:06 AM
Excel - returning column headers in a seperate column ExcelConfused Excel Discussion (Misc queries) 1 March 28th 06 02:49 PM
Returning the last item in column HondaMike New Users to Excel 3 January 4th 05 11:20 AM


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