Choose Function Formula

acool

Board Regular
Joined
Feb 10, 2023
Messages
117
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone!

I am currently trying to create a choose function formula which toggles between inputs based on the the scenario chosen. In this specific example, I am provided two different data sets--based on the scenario that I chose (1 or 2), I would like my formula to pull the values from that data set. I am attaching an example below for reference. Any help would be greatly appreciated. Thank you!

1686612464528.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about:

Excel Formula:
=CHOOSECOLS(A3:B37,E2)
 
Upvote 0
How about:

Excel Formula:
=CHOOSECOLS(A3:B37,E2)
Hi Dante,

Thank you for your help! This formula does work, but I was curious if you knew of a way to tweak the formula so that it allows me to sort my columns from largest to smallest while maintaining the proper values if necessary. As of now, it does not all me to make changes to the array when trying to sort. Appreciate all of your help!
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,813
Members
449,469
Latest member
Kingwi11y

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