Switch

mypig7

Active Member
Joined
Sep 27, 2004
Messages
285
I'm trying to learn some new formulas & have come across SWITCH.

I know how to use VLOOKUPS

I have a list of names of Fruit in Column A - in A1:A5 & a list of costs for each next to them in B1:B5

In D1 I want to type some fruit e.g. Apple, which is also in A3, the press Enter when I have finished typing.

Then in E1 I want a formula to look at D1, then go and look for it in A1:B5 find the fruit that I have typed in & bring back the cost, from column B.

I know VLOOKUP can do that.

From what I've read, so will SWITCH

What's the benefit of using SWITCH?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Last time I saw SWITCH mentioned it was a negative comment. I think it reasoned that using VLOOKUP on a range and modifying the range is more user-friendly than amending the SWITCH formula, and I agree with that.
 
Upvote 0
With switch you don't need a lookup table, so as long as the criteria never change, it's fine. But if your criteria are likely to change, then you would have to modify the formula every time.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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