![]() |
|
|
#1 | ||
|
High School Varsity
Join Date: Oct 2002
Location: Dallas, TX
|
Excel Question
I want to do a VLOOKUP formula, but I want the value to be looked up to be nothing, a blank cell in other words. (I know it sounds weird, but I'm running a query, and one of the fields in this query may be blank for some rows, and I want to sum up one of the columns in the query for all of my 'blanks.' So I'm essentially combining a SUMIF formula with the VLOOKUP.)
I've tried referencing a blank cell, or using "", '', " ", ' ', and any number of other assortments to look up, but the result is always #N/A... Anyone know how to remedy this? Thanks in advance. |
||
|
|
|
|
|
#2 | |
|
College Starter
Join Date: Jun 2002
|
Quote:
This might be a dirty way to do it, but it might work: IF(ISBLANK(VLOOKUP(A17,A:B,2,FALSE)),"Blank",A17) If column 2 {Cell B17 in this example} contains a blank, the vlookup will return the value "Blank" whereas if it isn't blank, it will return the value in A17. You can change "Blank" to be 0 if you want, or whatever value you choose. Hope this helps.
__________________
Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. - Lou Holtz |
|
|
|
|
|
|
#3 |
|
Dearly Missed
(9/25/77-12/23/08) Join Date: Nov 2003
Location: DC Suburbs
|
You can also use "=IF(ISNA(" like the below example.
__________________
NAFL New Orleans Saints GM/Co-Commish MP Career Record: 114-85 NAFL Super Bowl XI Champs In memory of Gavin Anthony: 7/22/08-7/26/08 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|