Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2013, 05:53 PM
heastlund heastlund is offline trying to use vlookup to calculate several different situations in one cell Windows 7 64bit trying to use vlookup to calculate several different situations in one cell Office 2010 64bit
Novice
trying to use vlookup to calculate several different situations in one cell
 
Join Date: Jul 2012
Posts: 5
heastlund is on a distinguished road
Exclamation trying to use vlookup to calculate several different situations in one cell


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))))
Reply With Quote
  #2  
Old 11-21-2013, 01:35 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline trying to use vlookup to calculate several different situations in one cell Windows 7 64bit trying to use vlookup to calculate several different situations in one cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,766
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Perhaps replace your empty cells conditions with
=IF(C5="",0,Vlookup... etc..
The "" is causing the error

BTW what is the OR function for?
__________________
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
Reply With Quote
  #3  
Old 11-21-2013, 12:27 PM
heastlund heastlund is offline trying to use vlookup to calculate several different situations in one cell Windows 7 64bit trying to use vlookup to calculate several different situations in one cell Office 2010 64bit
Novice
trying to use vlookup to calculate several different situations in one cell
 
Join Date: Jul 2012
Posts: 5
heastlund is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 11-21-2013, 12:38 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline trying to use vlookup to calculate several different situations in one cell Windows 7 64bit trying to use vlookup to calculate several different situations in one cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,766
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

You're welcome, but don't put the 0 between double quotes !
__________________
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
Reply With Quote
Reply

Tags
formulas, vlookup

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate age userman Excel 8 06-02-2012 10:59 PM
trying to use vlookup to calculate several different situations in one cell How to calculate percentages??? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft