vlookup on cells with Active-x or form controls

bgonen

Active Member
Joined
Oct 24, 2009
Messages
264
Is there a way to use lookup formulas on cells that are picked from a Combo box or any other control buttons ?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I'm not really sure what you mean. If the controls return a value to a cell then yes you can use that value in other formulas.
 
Upvote 0
yes the control return a value but when I try to lookup this specific cell the formula won't work
 
Upvote 0
In what way does it not work? (at a guess I'd say you are looking up a number value, but the value returned by the control may be text.)
 
Upvote 0
yes, I'm trying to pull a number value (for example:2789001)
but according to you; it is pull as TEXT (so that's why the Lookup formula is giving me #N/A,,,)

Is there a way to force the cell to pull value rather than text?
 
Upvote 0
No - you need to adjust your formula so that instead of say:
=lookup(A1,somerange)
it is:
=lookup(--A1,somerange)
 
Upvote 0
I tried the trick but it didn't work (and I know my formula is good because without the drop down button , the values are pulled correctly)
 
Upvote 0
What is the actual formula and can you post a version that works using a literal lookup value rather than a cell reference?
 
Upvote 0
sorry, I don't know how to show a literal formula
but D2 is the value I'm trying to pull from the control button
C3:I7 is a range of rates
I37 is volume

=VLOOKUP(--$D$2,$C$3:$I$7,7,FALSE)*I37

Please don't give up on me,,,:(
 
Upvote 0
What is in D2 and which if these two formulas works:
=VLOOKUP(2789001,$C$3:$I$7,7,FALSE)*I37
or:
=VLOOKUP("2789001",$C$3:$I$7,7,FALSE)*I37
(using the sample number you provided earlier)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top