Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Rick
 
Posts: n/a
Default look up tables and IF statements

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please
  #2   Report Post  
Posted to microsoft.public.excel.newusers
RaymundCG
 
Posts: n/a
Default look up tables and IF statements

Hi Rick!

Would this modification do?

=IF(OR(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2),"" )

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Rick
 
Posts: n/a
Default look up tables and IF statements

Hi RaymundCG
Thanks for the reply. Unfortunately this aolution did not work. Is there
anything else that I could try.
Rick

"RaymundCG" wrote:

Hi Rick!

Would this modification do?

=IF(OR(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2),"" )

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Rick
 
Posts: n/a
Default look up tables and IF statements

Apologies: It works if there is nothing in the box, but not if there is a
zero in the box, and I can work with it like that, many thanks.

Rick

"Rick" wrote:

Hi RaymundCG
Thanks for the reply. Unfortunately this aolution did not work. Is there
anything else that I could try.
Rick

"RaymundCG" wrote:

Hi Rick!

Would this modification do?

=IF(OR(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2),"" )

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please

  #5   Report Post  
Posted to microsoft.public.excel.newusers
RaymundCG
 
Posts: n/a
Default look up tables and IF statements

Hi Rick!

I re-tested the formula and it seems that this one may be better... :)

=IF(OR(G2=0,G2=""),"",VLOOKUP(G2,$C$30:$F$369,2))

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

Apologies: It works if there is nothing in the box, but not if there is a
zero in the box, and I can work with it like that, many thanks.

Rick

"Rick" wrote:

Hi RaymundCG
Thanks for the reply. Unfortunately this aolution did not work. Is there
anything else that I could try.
Rick

"RaymundCG" wrote:

Hi Rick!

Would this modification do?

=IF(OR(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2),"" )

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please



  #6   Report Post  
Posted to microsoft.public.excel.newusers
Rick
 
Posts: n/a
Default look up tables and IF statements

Your a genius. It works great. Many thanks.

"RaymundCG" wrote:

Hi Rick!

I re-tested the formula and it seems that this one may be better... :)

=IF(OR(G2=0,G2=""),"",VLOOKUP(G2,$C$30:$F$369,2))

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

Apologies: It works if there is nothing in the box, but not if there is a
zero in the box, and I can work with it like that, many thanks.

Rick

"Rick" wrote:

Hi RaymundCG
Thanks for the reply. Unfortunately this aolution did not work. Is there
anything else that I could try.
Rick

"RaymundCG" wrote:

Hi Rick!

Would this modification do?

=IF(OR(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2),"" )

Hope this helps!
--
Thanks and kind regards


"Rick" wrote:

=VLOOKUP(G2,$C$30:$F$369,2)
I have managed to create a look up table using the office assistant, and the
formula above dumps information into cell G3. If G2 is empty or has a zero I
don't want G3 to have anything in it. At the moment it just keeps coming up
with #N/A
Can anyone tell me what formula I should be using please

  #7   Report Post  
Posted to microsoft.public.excel.newusers
Leo Heuser
 
Posts: n/a
Default look up tables and IF statements

"RaymundCG" skrev i en meddelelse
...
Hi Rick!

I re-tested the formula and it seems that this one may be better... :)

=IF(OR(G2=0,G2=""),"",VLOOKUP(G2,$C$30:$F$369,2))

Hope this helps!
--


Hi Raymund

This in an example of De Morgan's Laws, which has to do with
negating propositions.

If you negate the compound proposition
G2=0 OR G2=""

De Morgan states, that the propositions are negated and OR
is turned to AND (and vice versa), so

neg(G2=0 OR G2="") will be
G2<0 AND G2<""

Or in your first answer:

=IF(AND(G2<0,G2<""),VLOOKUP(G2,$C$30:$F$369,2)," ")

--
Best regards
Leo Heuser

Followup to newsgroup only please.



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
Refreshing Pivot Tables linked to Oracle Datasource [email protected] Excel Discussion (Misc queries) 0 April 25th 06 12:15 AM
How do I keep file sizes small when using multiple pivot tables? jester1072 Excel Discussion (Misc queries) 2 June 6th 05 06:43 PM
How to pull numbers from two tables with conditions? Anna Excel Worksheet Functions 1 May 14th 05 03:21 PM
Macro for Pivot Tables Thomas Excel Discussion (Misc queries) 1 March 15th 05 01:03 AM
How to paste Xcel tables legibly into Word . Help!! Nimo Excel Discussion (Misc queries) 1 December 14th 04 09:53 PM


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