Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Vlookup dependent on a validation table

I have a cell that has a validation table that allows data to be entered that
is not available in my "list". It brings up the information pop up window
and you click ok to keep going with the information entered that is not on
the list.

Another cell has a vlookup table dependent on the data in the validation
cell. I would like for the vlookup cell to return nothing if the validation
cell had data entered on it that is not included on the validation list. If
I put the last argument in the Vlookup, it returns an N/A #. My formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Vlookup dependent on a validation table

instead of your vlookup put this in the cells
in Excel 2003
=ISERROR('your VLOOKUP without quotes shown here',"",'your VLOOKUP without
quotes shown here')

in 2007 you can shorten that too
=IFERROR('your VLOOKUP without quotes shown here',"")

"saltnsnails" wrote:

I have a cell that has a validation table that allows data to be entered that
is not available in my "list". It brings up the information pop up window
and you click ok to keep going with the information entered that is not on
the list.

Another cell has a vlookup table dependent on the data in the validation
cell. I would like for the vlookup cell to return nothing if the validation
cell had data entered on it that is not included on the validation list. If
I put the last argument in the Vlookup, it returns an N/A #. My formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Vlookup dependent on a validation table

It says I have too few arguments. :(

"Sheeloo" wrote:

instead of your vlookup put this in the cells
in Excel 2003
=ISERROR('your VLOOKUP without quotes shown here',"",'your VLOOKUP without
quotes shown here')

in 2007 you can shorten that too
=IFERROR('your VLOOKUP without quotes shown here',"")

"saltnsnails" wrote:

I have a cell that has a validation table that allows data to be entered that
is not available in my "list". It brings up the information pop up window
and you click ok to keep going with the information entered that is not on
the list.

Another cell has a vlookup table dependent on the data in the validation
cell. I would like for the vlookup cell to return nothing if the validation
cell had data entered on it that is not included on the validation list. If
I put the last argument in the Vlookup, it returns an N/A #. My formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Vlookup dependent on a validation table

Sorry, I forgot the IF statement...

Try...
=IF(ISERROR(VLOOKUP(E12,$AB$3:$AC$34, 2,
FALSE)),"",VLOOKUP(E12,$AB$3:$AC$34, 2, FALSE ))

bascially it checks ISERROR(VLOOKUP), if true returns "", otherwise retruns
VLOOKUP

I have removed the $ around E12 so that you can copy down...
"saltnsnails" wrote:

It says I have too few arguments. :(

"Sheeloo" wrote:

instead of your vlookup put this in the cells
in Excel 2003
=ISERROR(VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ),"",VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ))

in 2007 you can shorten that too
=IFERROR('your VLOOKUP without quotes shown here',"")

"saltnsnails" wrote:

I have a cell that has a validation table that allows data to be entered that
is not available in my "list". It brings up the information pop up window
and you click ok to keep going with the information entered that is not on
the list.

Another cell has a vlookup table dependent on the data in the validation
cell. I would like for the vlookup cell to return nothing if the validation
cell had data entered on it that is not included on the validation list. If
I put the last argument in the Vlookup, it returns an N/A #. My formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Vlookup dependent on a validation table

AWESOME!!!! Thank you!

"Sheeloo" wrote:

Sorry, I forgot the IF statement...

Try...
=IF(ISERROR(VLOOKUP(E12,$AB$3:$AC$34, 2,
FALSE)),"",VLOOKUP(E12,$AB$3:$AC$34, 2, FALSE ))

bascially it checks ISERROR(VLOOKUP), if true returns "", otherwise retruns
VLOOKUP

I have removed the $ around E12 so that you can copy down...
"saltnsnails" wrote:

It says I have too few arguments. :(

"Sheeloo" wrote:

instead of your vlookup put this in the cells
in Excel 2003
=ISERROR(VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ),"",VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ))

in 2007 you can shorten that too
=IFERROR('your VLOOKUP without quotes shown here',"")

"saltnsnails" wrote:

I have a cell that has a validation table that allows data to be entered that
is not available in my "list". It brings up the information pop up window
and you click ok to keep going with the information entered that is not on
the list.

Another cell has a vlookup table dependent on the data in the validation
cell. I would like for the vlookup cell to return nothing if the validation
cell had data entered on it that is not included on the validation list. If
I put the last argument in the Vlookup, it returns an N/A #. My formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Vlookup dependent on a validation table

Just a heads up, in these situations it is probably better to use ISNA
instead of ISERROR since ISERROR would shield errors that can be of interest
whereas ISNA is only hiding #N/A

--


Regards,


Peo Sjoblom

"Sheeloo" wrote in message
...
Sorry, I forgot the IF statement...

Try...
=IF(ISERROR(VLOOKUP(E12,$AB$3:$AC$34, 2,
FALSE)),"",VLOOKUP(E12,$AB$3:$AC$34, 2, FALSE ))

bascially it checks ISERROR(VLOOKUP), if true returns "", otherwise
retruns
VLOOKUP

I have removed the $ around E12 so that you can copy down...
"saltnsnails" wrote:

It says I have too few arguments. :(

"Sheeloo" wrote:

instead of your vlookup put this in the cells
in Excel 2003
=ISERROR(VLOOKUP($E$12,$AB$3:$AC$34, 2,
0 ),"",VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ))

in 2007 you can shorten that too
=IFERROR('your VLOOKUP without quotes shown here',"")

"saltnsnails" wrote:

I have a cell that has a validation table that allows data to be
entered that
is not available in my "list". It brings up the information pop up
window
and you click ok to keep going with the information entered that is
not on
the list.

Another cell has a vlookup table dependent on the data in the
validation
cell. I would like for the vlookup cell to return nothing if the
validation
cell had data entered on it that is not included on the validation
list. If
I put the last argument in the Vlookup, it returns an N/A #. My
formula
looks like this:
=IF($E$120, VLOOKUP($E$12,$AB$3:$AC$34, 2, 0 ), "")

Any thoughts?

Thanks!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Vlookup dependent on a validation table

Thanks Peo,

That is a very good suggestion... I will keep that in mind.

Regards,

"Peo Sjoblom" wrote:

Just a heads up, in these situations it is probably better to use ISNA
instead of ISERROR since ISERROR would shield errors that can be of interest
whereas ISNA is only hiding #N/A

--


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
Dependent DropLists - Using Validation ABlevins Excel Worksheet Functions 1 April 7th 08 03:57 PM
Validation of cells who is dependent on each other Jane Excel Discussion (Misc queries) 2 November 8th 07 01:25 PM
If, vlookup, data validation & dependent list Karen Excel Worksheet Functions 6 July 11th 07 04:18 PM
vlookup with validation table jparker Excel Discussion (Misc queries) 3 August 12th 05 02:12 AM
Table Array in VLOOKUP Relies on Data Validation willydlish Excel Worksheet Functions 2 February 16th 05 03:20 AM


All times are GMT +1. The time now is 07:01 PM.

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"