#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default #REF ERROR

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default #REF ERROR

What's the range of PVC2? It needs to be at least 3 columns wide in order for
the "3" to make sense. or is the reference being returned a #REF! itself?

"bduncan" wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default #REF ERROR

I didn't have all three columns in the range. Thanks you, but
I changed the range and still have the same problem. In the evaluation it
says"IF(FALSE,#N/A,VLOOKUP9"239-503017 - BULKHEAD BOLTED FITTING 2"'
W/SIPHON",fittings!$a:$c,3,False)).

I'm guessing this is the problem in my formula but I don't know what is wrong.

"Bob Umlas, Excel MVP" wrote:

What's the range of PVC2? It needs to be at least 3 columns wide in order for
the "3" to make sense. or is the reference being returned a #REF! itself?

"bduncan" wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default #REF ERROR

I think I'd build the formula not using the range name--just to get it working
ok.

=IF(ISBLANK(B383),"---",VLOOKUP($B383,fittings!$A:$C,3,FALSE))

It that works ok, then it's time to determine what PVC2 refers to. Maybe that's
where the error is.

What happened when you tried the other suggestion?



bduncan wrote:

I didn't have all three columns in the range. Thanks you, but
I changed the range and still have the same problem. In the evaluation it
says"IF(FALSE,#N/A,VLOOKUP9"239-503017 - BULKHEAD BOLTED FITTING 2"'
W/SIPHON",fittings!$a:$c,3,False)).

I'm guessing this is the problem in my formula but I don't know what is wrong.

"Bob Umlas, Excel MVP" wrote:

What's the range of PVC2? It needs to be at least 3 columns wide in order for
the "3" to make sense. or is the reference being returned a #REF! itself?

"bduncan" wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default #REF ERROR

Thanks for the help, I changed my range name and used the actual address. I
don't know if I made a mistake or that the error changed but the error is now
#N/A.

"Dave Peterson" wrote:

I think I'd build the formula not using the range name--just to get it working
ok.

=IF(ISBLANK(B383),"---",VLOOKUP($B383,fittings!$A:$C,3,FALSE))

It that works ok, then it's time to determine what PVC2 refers to. Maybe that's
where the error is.

What happened when you tried the other suggestion?



bduncan wrote:

I didn't have all three columns in the range. Thanks you, but
I changed the range and still have the same problem. In the evaluation it
says"IF(FALSE,#N/A,VLOOKUP9"239-503017 - BULKHEAD BOLTED FITTING 2"'
W/SIPHON",fittings!$a:$c,3,False)).

I'm guessing this is the problem in my formula but I don't know what is wrong.

"Bob Umlas, Excel MVP" wrote:

What's the range of PVC2? It needs to be at least 3 columns wide in order for
the "3" to make sense. or is the reference being returned a #REF! itself?

"bduncan" wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default #REF ERROR

First, I didn't notice this in your original formula, but I think you have a
small mistake.

You used B383 in the =isblank() portion and $B383 in the =vlookup() portion. I
would expect that you would want that to be the same (absolution or
relative--but the same).

If you see #n/a, that means that there is no match in the first column of your
lookup range for the value in B383.

Debra Dalgleish has lots of notes on troubleshooting this kind of error:
http://contextures.com/xlFunctions02.html#Trouble

If your data doesn't really have a match and you want to hide that #n/a, you can
use format|Conditional formatting (white font on a white fill???).

Or you could change your formula:

=if($b383="","",if(isna(vlookup(...)),"Missing",vl ookup(...)))

I like $b383="" better than =isblank($b383) since it's less typing.

You can change "Missing" to anything you want--including an empty string: ""

bduncan wrote:

Thanks for the help, I changed my range name and used the actual address. I
don't know if I made a mistake or that the error changed but the error is now
#N/A.

"Dave Peterson" wrote:

I think I'd build the formula not using the range name--just to get it working
ok.

=IF(ISBLANK(B383),"---",VLOOKUP($B383,fittings!$A:$C,3,FALSE))

It that works ok, then it's time to determine what PVC2 refers to. Maybe that's
where the error is.

What happened when you tried the other suggestion?



bduncan wrote:

I didn't have all three columns in the range. Thanks you, but
I changed the range and still have the same problem. In the evaluation it
says"IF(FALSE,#N/A,VLOOKUP9"239-503017 - BULKHEAD BOLTED FITTING 2"'
W/SIPHON",fittings!$a:$c,3,False)).

I'm guessing this is the problem in my formula but I don't know what is wrong.

"Bob Umlas, Excel MVP" wrote:

What's the range of PVC2? It needs to be at least 3 columns wide in order for
the "3" to make sense. or is the reference being returned a #REF! itself?

"bduncan" wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00


--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default #REF ERROR

I'm betting that PVC2 has less than 3 columns.

Try:
Ctrl-g
type
pvc2
and hit enter

What is selected?



bduncan wrote:

I'm trying to run the following formula
"=IF(ISBLANK(B383),"---",VLOOKUP($B383,PVC2,3,FALSE))" and I keep getting the
error listed in the subject line.
We are doing inventory and on a couple of pages the people counting wanted
them by description instead of part number. I've put the parts on a
seperated worksheet and named the range for the parts to PVC2. I didn't what
to have to manually configure them jumping around. This would of been easy
except our accounting software kept the part numbers and descriptions in the
same cell. I actually exported 2 differents sheets from the software. one
listing every thing by part number and the other by description. I'm not
sure what is wrong. I've tried going through the evaluate formula and it
show's the #ref in there but not sure how to fix it.
239-503017 - BULKHEAD BOLTED FITTING 2" W/SIPHON #REF! 1.00


--

Dave Peterson
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
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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