Hos to control a formula with slicer or multiple options button?

Fractalis

Active Member
Joined
Oct 11, 2011
Messages
328
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Is there a way to control a formula with a button of options like a slicer but without inserting a pivot table in the process?

For example a simple VLOOKUP() which result changes depending 3 input values, so, have those 3 input values in a slicer or similar button?

Thanks for any suggestion
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Slicers are filters and can be used on Excel Tables, Pivot Tables, and Pivot Charts. I think what you need is a Data Validation cell with a list of what you want to be used in the VLOOKUP.
Excel VBA User Defined Function To Generate A Dynamic Array - 2516.xlsm
ABCDEF
1NameJanFebMarAprMay
2Branson80.5988.74
3Isiah95.6494.89
4Joyce105.42111.85
5Jessica116.1694.94
6Emery102.71118.99
7Charlie97.3887.01
8Raegan96.2691.58
9Olivia118.47109.85
10William121.63104.66
11Javier106.5185.1
12Kiera124.8684.42
13Kelli105.85109.73
14
15
16Month
17NameJan
18Branson80.59
19Isiah95.64
20Joyce105.42
21Jessica116.16
22Emery102.71
23Charlie97.38
24Raegan96.26
25Olivia118.47
26William121.63
27Javier106.51
28Kiera124.86
29Kelli105.85
Sheet5
Cell Formulas
RangeFormula
B18:B29B18=VLOOKUP(A18,$A$1:$H$13,MATCH($B$17,$B$1:$H$1,0)+1,0)
Cells with Data Validation
CellAllowCriteria
B17List=$B$1:$G$1

The selection in the Data Validation list determines the column displayed.

This is even easier with 365, but I didn't know which version you're working with. Go to your Profile and define which version of Excel and which OS.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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