Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Searching the formula result

Excel 2003 WinXP
Programming question:
I had an interesting problem while helping an OP setup a spreadsheet. I had
a list of names in Column A, say Tom, Dick, Harry.
I then had a row range, say B1:D1. Each of these latter cells had a
formula to bring the names in the first list. The formulas were simply
"=A1", "=A2", etc, and displayed Tom, Dick, & Harry.
The task I had was to search the latter cells for a name in the first
list. I found that I couldn't search for the name because the latter cells
didn't contain names, they contained only formulas.
I solved my problem by searching for the cell address (.address(0,0)) of
the name in the first list. That worked.
My question: Is there a better way of searching for a name in a list
that has only formulas that result in the names?
Thanks for your help. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Searching the formula result

if you were using find, you would specify Lookin:=xlValues rather than
Lookin:=xlformulas

also, Lookat:=xlwhole or Lookat:=xlPart could play a role.

It is always best to specify the value for all parameters when using find.

Regards,
Tom Ogilvy



Otto Moehrbach wrote in message
...
Excel 2003 WinXP
Programming question:
I had an interesting problem while helping an OP setup a spreadsheet. I

had
a list of names in Column A, say Tom, Dick, Harry.
I then had a row range, say B1:D1. Each of these latter cells had a
formula to bring the names in the first list. The formulas were simply
"=A1", "=A2", etc, and displayed Tom, Dick, & Harry.
The task I had was to search the latter cells for a name in the first
list. I found that I couldn't search for the name because the latter

cells
didn't contain names, they contained only formulas.
I solved my problem by searching for the cell address (.address(0,0))

of
the name in the first list. That worked.
My question: Is there a better way of searching for a name in a list
that has only formulas that result in the names?
Thanks for your help. Otto




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Searching the formula result

Thanks Tom. Another palm to the forehead. I have to stop asking you
questions. It's bad for my head. Otto
"Tom Ogilvy" wrote in message
...
if you were using find, you would specify Lookin:=xlValues rather than
Lookin:=xlformulas

also, Lookat:=xlwhole or Lookat:=xlPart could play a role.

It is always best to specify the value for all parameters when using find.

Regards,
Tom Ogilvy



Otto Moehrbach wrote in message
...
Excel 2003 WinXP
Programming question:
I had an interesting problem while helping an OP setup a spreadsheet. I

had
a list of names in Column A, say Tom, Dick, Harry.
I then had a row range, say B1:D1. Each of these latter cells had a
formula to bring the names in the first list. The formulas were simply
"=A1", "=A2", etc, and displayed Tom, Dick, & Harry.
The task I had was to search the latter cells for a name in the

first
list. I found that I couldn't search for the name because the latter

cells
didn't contain names, they contained only formulas.
I solved my problem by searching for the cell address

(.address(0,0))
of
the name in the first list. That worked.
My question: Is there a better way of searching for a name in a

list
that has only formulas that result in the names?
Thanks for your help. Otto






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
Searching multiple data to show desired result lawandgrace Excel Discussion (Misc queries) 3 September 1st 09 05:06 AM
Searching on 2 columns and putting result in third column. RobFJ[_3_] Excel Worksheet Functions 2 April 14th 09 04:32 PM
Formula result does not match displayed result lothar Excel Worksheet Functions 1 June 23rd 08 05:05 AM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Searching a text and filling a cell with the result pauloterra Excel Programming 3 January 19th 04 01:20 PM


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