Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Its probably a text number.
You can try an "add zero" to the lookup, eg: = VLOOKUP(A2+0, ...) which will coerce the text num in A2 to a real num for proper matching -- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- "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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The combobox produces text, not a number.
in the vlookup put a VALUE function pointing to the linked cell. =vlookup(Value(A1),.......) "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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting Output Range in Combo Box | Excel Discussion (Misc queries) | |||
vlookup not giving correct output | Excel Discussion (Misc queries) | |||
vlookup not giving correct output | Excel Discussion (Misc queries) | |||
Combo Box to populate variable output range | Excel Discussion (Misc queries) | |||
Combo Box - format output as time | Excel Discussion (Misc queries) |