Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Vlook up with if statement

Hi,

I need to do the following and have tried with a vlook up and nested if but
does not seem to be working.

I have two sheets and I need to look up a value on sheet 1 and return it to
sheet 2 however if the value is 0 I want to show the figure and if it is <
0 I need to return 0.

any ideas much appreciated

Thanks
J
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Vlook up with if statement

Something like:

=IF(VLOOKUP(B1,C1:D4,2)<0,0,VLOOKUP(B1,C1:D4,2))

--
Gary''s Student - gsnu200851


"Jools" wrote:

Hi,

I need to do the following and have tried with a vlook up and nested if but
does not seem to be working.

I have two sheets and I need to look up a value on sheet 1 and return it to
sheet 2 however if the value is 0 I want to show the figure and if it is <
0 I need to return 0.

any ideas much appreciated

Thanks
J

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Vlook up with if statement

Hi,

Thanks is all working ok now.

thanks
J

"Gary''s Student" wrote:

Something like:

=IF(VLOOKUP(B1,C1:D4,2)<0,0,VLOOKUP(B1,C1:D4,2))

--
Gary''s Student - gsnu200851


"Jools" wrote:

Hi,

I need to do the following and have tried with a vlook up and nested if but
does not seem to be working.

I have two sheets and I need to look up a value on sheet 1 and return it to
sheet 2 however if the value is 0 I want to show the figure and if it is <
0 I need to return 0.

any ideas much appreciated

Thanks
J

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
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
Vlook up or if statement helps! Jurassien Excel Discussion (Misc queries) 2 April 25th 07 08:41 PM
Combining a Vlook up with and If then statement Sweetetc Excel Worksheet Functions 14 May 2nd 06 09:06 PM
Vlook in VBA with If statement Jeff Excel Discussion (Misc queries) 1 September 20th 05 06:26 PM


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