Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Look up and return text values

Hi,
I have two tabs in workbook
Tab "Blank" which contains a table with two columns "A" & "B" and rows
"42:69." In column A you place an "x" to signify the text in column B is to
be used. At the top of the table I have a row that does Autofilter lookups.
Insufficient.

In Tab B there is a lookup cell which contains a formula
=VLOOKUP("x",Blank!A42:B69,2,0)
This works well to get well to get the first row with an "x" and the text to
the right.
=VLOOKUP("x",Blank!A42:B69,2)
This gets me the last row with an "x" and the text to the right.

What I'd like to do is get the text to the right in all rows that contain an
"x". So out of twenty-seven rows if three rows contain an "x" in column "A"
then the return would be the text in cell B row#? + B row#?? + Brow#???.

That lookup cell is one that is used with mailmerge.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Look up and return text values

One way ..

In sheet: Blank,
Put in C42: =IF(A42="x",ROW(A1),"")
Copy down to C69

Then in sheet: B,
Put in say, A2:
=IF(ROW(A1)COUNT(Blank!$C$42:$C$69),"",INDEX(Blan k!$B$42:$B$69,SMALL(Blank!$C$42:$C$69,ROW(A1))))
Copy A2 down by 28 rows to A29. A2:A29 will extract the required results
from "Blank", all neatly bunched at the top
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"plb2862" wrote in message
...
Hi,
I have two tabs in workbook
Tab "Blank" which contains a table with two columns "A" & "B" and rows
"42:69." In column A you place an "x" to signify the text in column B is
to be used. At the top of the table I have a row that does Autofilter
lookups. Insufficient.

In Tab B there is a lookup cell which contains a formula
=VLOOKUP("x",Blank!A42:B69,2,0)
This works well to get well to get the first row with an "x" and the text
to the right.
=VLOOKUP("x",Blank!A42:B69,2)
This gets me the last row with an "x" and the text to the right.

What I'd like to do is get the text to the right in all rows that contain
an "x". So out of twenty-seven rows if three rows contain an "x" in
column "A" then the return would be the text in cell B row#? + B row#?? +
Brow#???.

That lookup cell is one that is used with mailmerge.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Look up and return text values

"plb2862" wrote in message
...
Hi,
I have two tabs in workbook
Tab "Blank" which contains a table with two columns "A" & "B" and rows
"42:69." In column A you place an "x" to signify the text in column B is
to be used. At the top of the table I have a row that does Autofilter
lookups. Insufficient.

In Tab B there is a lookup cell which contains a formula
=VLOOKUP("x",Blank!A42:B69,2,0)
This works well to get well to get the first row with an "x" and the text
to the right.
=VLOOKUP("x",Blank!A42:B69,2)
This gets me the last row with an "x" and the text to the right.

What I'd like to do is get the text to the right in all rows that contain
an "x". So out of twenty-seven rows if three rows contain an "x" in
column "A" then the return would be the text in cell B row#? + B row#?? +
Brow#???.

That lookup cell is one that is used with mailmerge.

Thanks


Works like a charm. Thank you


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Look up and return text values

Welcome ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"plb2862" wrote
Works like a charm. Thank you



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
count text values and return most common occurence MMcQ Excel Discussion (Misc queries) 8 February 14th 07 07:00 PM
Pivot Table (vlookup 2 column text values, return 1 value) Al Excel Discussion (Misc queries) 1 November 30th 05 01:15 AM
Search multiple values to return single values JANA Excel Worksheet Functions 8 October 27th 05 04:26 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
How to use an array or matrix to return text vs. numeric values Ingrid Excel Worksheet Functions 2 April 10th 05 12:51 AM


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