#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Lookup

I am currently using a lookup and when the number being entered a negative
amount the answer comes back as #N/A why? And what is the correct way to fix
it?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Lookup

Do you have negative numbers in your table?

--
Don Guillett
SalesAid Software

"americasmattress8888"
wrote in message ...
I am currently using a lookup and when the number being entered a negative
amount the answer comes back as #N/A why? And what is the correct way to
fix
it?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Lookup

no, I do not the formula is
=LOOKUP(C3,{0,500,700,100,1400,1800,2000},{0.01,0. 02,0.03,0.04,0.05,0.06,0.07})*C3

"Don Guillett" wrote:

Do you have negative numbers in your table?

--
Don Guillett
SalesAid Software

"americasmattress8888"
wrote in message ...
I am currently using a lookup and when the number being entered a negative
amount the answer comes back as #N/A why? And what is the correct way to
fix
it?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Lookup

From LOOKUP help:

If lookup_value is smaller than the smallest value in lookup_vector, LOOKUP
gives the #N/A error value.

So a negative value is smaller than 0 hence #N/A.

If value is negative, what should the LOOKUP result be?

"americasmattress8888" wrote:

no, I do not the formula is
=LOOKUP(C3,{0,500,700,100,1400,1800,2000},{0.01,0. 02,0.03,0.04,0.05,0.06,0.07})*C3

"Don Guillett" wrote:

Do you have negative numbers in your table?

--
Don Guillett
SalesAid Software

"americasmattress8888"
wrote in message ...
I am currently using a lookup and when the number being entered a negative
amount the answer comes back as #N/A why? And what is the correct way to
fix
it?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup

=IF(C3<0,"",LOOKUP(C3,{0,500,700,100,1400,1800,200 0},{0.01,0.02,0.03,0.04,0.05,0.06,0.07})*C3)


"americasmattress8888" wrote:

I am currently using a lookup and when the number being entered a negative
amount the answer comes back as #N/A why? And what is the correct way to fix
it?

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
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


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