Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I am using vlookup to calculate a value which is wroking great. However, if another cell has a zero value, I want my vlookup cell to be zero as well. cell D22...=VLOOKUP(D18,B33:C49,2) I want to add to the above formula... if another cell (D21) calculation result is zero, make this cell (D22) zero as well. What would the new formula be? Thank you! Vance -- Vance |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(D21=0,0,VLOOKUP(D18,B33:C49,2))
This however will return zero even in D21 is empty. To avoid that then use: =IF(D21="","",IFD21=0,0,VLOOKUP(D18,B33:C49,2))) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings with @tiscali.co.uk "Vance" wrote in message ... I am using vlookup to calculate a value which is wroking great. However, if another cell has a zero value, I want my vlookup cell to be zero as well. cell D22...=VLOOKUP(D18,B33:C49,2) I want to add to the above formula... if another cell (D21) calculation result is zero, make this cell (D22) zero as well. What would the new formula be? Thank you! Vance -- Vance |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you Sandy - that worked perfect!
-- Vance "Sandy Mann" wrote: =IF(D21=0,0,VLOOKUP(D18,B33:C49,2)) This however will return zero even in D21 is empty. To avoid that then use: =IF(D21="","",IFD21=0,0,VLOOKUP(D18,B33:C49,2))) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings with @tiscali.co.uk "Vance" wrote in message ... I am using vlookup to calculate a value which is wroking great. However, if another cell has a zero value, I want my vlookup cell to be zero as well. cell D22...=VLOOKUP(D18,B33:C49,2) I want to add to the above formula... if another cell (D21) calculation result is zero, make this cell (D22) zero as well. What would the new formula be? Thank you! Vance -- Vance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup a Vlookup | Excel Worksheet Functions | |||
VLOOKUP Problem | Excel Discussion (Misc queries) | |||
VLOOKUP Limitations | Excel Worksheet Functions | |||
vlookup data hidden within worksheet | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |