Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default LOOKUP Function

I have 15 columns, with different headings, in worksheet1. I have a data
input form arranged in rows in worksheet2. I used a lookup function to locate
and move data from worksheet2 to worksheet1. My problem is that the Lookup
function in the adjacent cell adopts the data in the previous cell even
though the function should return #N/A.
The other possibility that I really like is to add the lookup function as an
argument inside an IF function. This way if there were no data the formula
would return a "0". Is this possible and what would the expression look like?

--
dhunter43
The Performance Advantage, LLC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default LOOKUP Function

Use VLOOKUP or HLOOKUP instead of LOOKUP. They have an optional final
argument that you can use to require exact matches.

Jerry

"dhunter43" wrote:

I have 15 columns, with different headings, in worksheet1. I have a data
input form arranged in rows in worksheet2. I used a lookup function to locate
and move data from worksheet2 to worksheet1. My problem is that the Lookup
function in the adjacent cell adopts the data in the previous cell even
though the function should return #N/A.
The other possibility that I really like is to add the lookup function as an
argument inside an IF function. This way if there were no data the formula
would return a "0". Is this possible and what would the expression look like?

--
dhunter43
The Performance Advantage, LLC

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default LOOKUP Function

I tried both. The problem is;i.e. the result in cell 'b17' shows up in cell
'b18' when the lookup function doesn't find a match. This is a problem
because I only want matched values to exist in order to know which cells to
use in a subsequent scheduling calculation.
My work around is a rather long 'IF' statement but it is populating the
cells as I want it to. It just seems to me that one of the LOOKUP functions
should have given me the results I was looking for.
OR perhaps a method for inserting a lookup function inside an 'IF' statement?
--
dhunter43
The Performance Advantage, LLC


"Jerry W. Lewis" wrote:

Use VLOOKUP or HLOOKUP instead of LOOKUP. They have an optional final
argument that you can use to require exact matches.

Jerry

"dhunter43" wrote:

I have 15 columns, with different headings, in worksheet1. I have a data
input form arranged in rows in worksheet2. I used a lookup function to locate
and move data from worksheet2 to worksheet1. My problem is that the Lookup
function in the adjacent cell adopts the data in the previous cell even
though the function should return #N/A.
The other possibility that I really like is to add the lookup function as an
argument inside an IF function. This way if there were no data the formula
would return a "0". Is this possible and what would the expression look like?

--
dhunter43
The Performance Advantage, LLC

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
Combining Lookup function and Sum function Cameron Excel Worksheet Functions 2 July 13th 09 02:19 AM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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