Nov 16 2021 07:07 AM
Hello,
I am fairly new to using VBA so I am unsure on how to write code to auto-populate H5 with the respective radius value based off of the tank selection slicer. If anyone could help me out or give me some insight I would appreciate it.
Nov 16 2021 07:51 AM
Solution@kevintl98 You didn't upload your file, so I made something myself. Since you only will select on tank at the time, you can use AGGREGATE (sum) in combination with visible cells only to pick up the value of the selected slicer option.
See attached.
Nov 16 2021 08:04 AM
Nov 16 2021 08:20 AM
@kevintl98 Perhaps not the most elegant solution, but if you use the original formula as a helper cell (hidden below the slicer), you can build another formula in H5. See attached.
Nov 16 2021 08:40 AM