![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
I am trying to calculate several different situations in one cell by using vlookup but if one cell is blank I get a value error. I have part of the formula but I am missing something. If I want it to pull from three different cells it works if all three have numbers in them but if one is empty I get a value error.
Here is the formula I have right now: =IF(C5="","",(VLOOKUP($C$5,'benchmark plan rates'!$B$2:$C$102,2,FALSE))+IF(D5="","",OR(VLOOKU P($D$5,'benchmark plan rates'!$B$2:$C$102,2,FALSE)))+IF(D5="","",(VLOOKUP ($C$7,'benchmark plan rates'!$E$3:$F$5,2,FALSE)))) |
#2
|
||||
|
||||
![]()
Perhaps replace your empty cells conditions with
=IF(C5="",0,Vlookup... etc.. The "" is causing the error BTW what is the OR function for?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
Thank you I will try the "0". I was grasping at straws since I am just learning vlookup. I took the formula from a spreadsheet someone else had made and modified it.
|
#4
|
||||
|
||||
![]()
You're welcome, but don't put the 0 between double quotes !
![]()
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
Tags |
formulas, vlookup |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calculate age | userman | Excel | 8 | 06-02-2012 10:59 PM |
![]() |
fabthi | Excel | 3 | 04-13-2012 12:08 PM |
How can I fill cell color starting from Cell D5 using Conditional formatting instead | Learner7 | Excel | 0 | 07-08-2010 05:50 AM |
Can't calculate formulas | Cpat | Excel | 2 | 06-09-2010 02:07 PM |
Auto-populate an MS Word table cell with text from a diff cell? | dreamrthts | Word Tables | 0 | 03-20-2009 01:49 PM |