Adding more than two arguments to an IF formula

1232343545444

New Member
Joined
Jun 23, 2015
Messages
2
I teach classes and I would like to choose the name of a class from a drop down list then have the cell next to it automatically show up with how long the duration of the class was (corresponding to the class chosen). The drop down list is from a pre-written list on a different sheet.
If the IF formula allowed for three or more arguments it would be easy but IF formula only allows for 2. Any help would be much appreciated. Thank you!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the board.

You could use vlookup.
If you already have al ist of the clesses on a different sheet, put the corresponding durations in an adjescent column.
Then do
=VLOOKUP(A2,'Other Sheet'!A$1:B$10,2,FALSE)

A2 is the name chosen from the dropdown
'Other Sheet' is the name of the other sheet that contains the list.
A1:A10 contains the class names
B1:B10 contains the corresponding durations.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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