View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
opieandy opieandy is offline
external usenet poster
 
Posts: 32
Default Combo Box - How to Use Output in Vlookup

Everyone - thanks for your help!

Chris

"Dave Peterson" wrote:

If your linkedcell is A1, try:

=isnumber(a1)

You'll see that the value in that cell is text--that's what the combobox
contains.

If all you have for options in that combobox are numbers (er, text values that
look like numbers), then maybe you could use:

=vlookup(--a1,sheet2!a:b,2,false)

The -- will coerce the text number to a number number.



opieandy wrote:

I've created a combo box and linked its output to a cell. I'm using that
cell in a vlookup formula. Using the combo box blows the vlookup formula.

The cell is formatted correctly (as a number), though the number doesn't
line up with the numbers below it (which aren't yet linked to a combo box),
and format painter does not change it to match those cells, so that tells me
there's something screwy about the format, but still not sure why vlookup
won't recognize it.

Any help/thoughts/ideas?

Thanks,

Chris


--

Dave Peterson