Conditional formula

Thafir021

New Member
Joined
May 3, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,
Is there a function like OR where I could have multiple formulas to be nested as options depending on what A3 would be? So instead of only the true or false OR provides, I'd like it to say IF A3= say 10 different items I type out, then it would require 1 of the 10 different formulas to be applied. I hope this makes sense, fairly new to excel and learning as I go along!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
So you want to apply 1 of 10 different formulas to the same cell ?

Not sure to catch quite what you mean - maybe an example would be useful ?

cheers

Rob
 
Upvote 0
You can nest IF statements, although if you have more than about 3 nest levels then I'd suggest taking other approaches.
Since you are using 365 you can use the IFS statement, which has the general syntax

Excel Formula:
[I]=IFS([Something is True1, Value if True1,Something is True2,Value if True2,Something is True3,Value if True3)[/I]

'Value if true' can be another formula, so for example in your case:

Excel Formula:
=IFS(A3=1, SUM(3,5),A3=2,AVERAGE(3,5))

See the Microsoft support page for further details.
 
Upvote 0
So you want to apply 1 of 10 different formulas to the same cell ?

Not sure to catch quite what you mean - maybe an example would be useful ?

cheers

Rob
Hi Rob,

Thanks for the response. I'll give an example of what I'm attempting below:

I want to work out worker bank/public holidays for different regions (spain, engalnd, ghana, etc.). I have 10 regions bank holiday dates, I have the list of workers and I have a holiday description column stating which regional holiday applies to each worker ( E.g., RobP - UK Bank Holiday). The regional holiday dates are on a sheet of their own.

Does this help?
 
Upvote 0
so as an example (to try and understand what you have) .. its something like this ? (where 1 = bank holiday applies to that country, 0 = does not apply.

Book1
ABCDEFGHIJKL
1WorkerHoliday DescriptionHoliday datesUKSpainFranceGermanyGhanaetc
2JimUK01/01/202411
3FredSpain29/03/202411
4IanGermany01/04/202411
5TimGhana01/05/202401
606/05/202410
727/05/202411
826/08/202411
925/12/202411
1026/12/202411
11
12
Sheet1


does it make sense ?

In this case, I'm not sure what you are now trying to calculate ?

Rob
 
Upvote 0

Forum statistics

Threads
1,216,496
Messages
6,130,983
Members
449,611
Latest member
Bushra

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