Jan 23 2023 08:37 AM
I need to write a "complicated" formula and don't have the first idea of what function to use so searching is not helping me. I'm down a rabbit hole and in need of help!
Gist:
For example:
L AE AI AF
Teamraiser Registration True True = Additional Gift
Teamraiser Registration False True = Reg Fee Only
Teamraiser Gift or Sustaining Gift True True = Later Gift
Teamraiser Gift or Sustaining Gift True False = Other Donor
Teamraiser Gift or Sustaining Gift False True = Later Gift
Teamraiser Gift or Sustaining Gift False False = Other Donor
Jan 23 2023 09:02 AM
=IF(AND(L2="Teamraiser Registration Gift",AE2="True",AI2="True"),"Additional",
IF(AND(L2="Teamraiser Registration Gift",AE2="False",AI2="True"),"Reg Fee",
IF(AND(OR(L2="Teamraiser Gift",L2="Sustaining Gift"),OR(AE2="True",AE2="False"),AI2="True"),"Later Gift",
IF(AND(OR(L2="Teamraiser Gift",L2="Sustaining Gift"),OR(AE2="True",AE2="False"),AI2="False"),"Other Donor",""))))
You can try this nested IF formula.
Feb 06 2023 07:55 AM
Feb 06 2023 08:27 AM
=IF(AND(L2="Teamraiser Registration Gift",AE2="TRUE",AI2="TRUE"),"Additional",IF(AND(L2="Teamraiser Registration Gift",AE2="FALSE",AI2="TRUE"),"Reg Fee",IF(AND(OR(L2="Teamraiser Gift",L2="Sustaining Gift"),OR(AE2="TRUE",AE2="FALSE"),AI2="TRUE"),"Later Gift",IF(AND(OR(L2="Teamraiser Gift",L2="Sustaining Gift"),OR(AE2="TRUE",AE2="FALSE"),AI2="FALSE"),"Other Donor",""))))
I've translated the formula into german and back into english and it returns the expected result in my sheet. Maybe you can attach a sample workbook without sensitive data or a screenshot without sensitive data which shows the formula, the ranges and the results in your sheet?
Mar 14 2023 01:48 PM
Hi @OliverScheurich! The formula you gave @Holly_Michaelson worked out for me, in my scenario. I do have a slight difference I am trying to achieve and could not figure out the correct way to manipulate it. I in turn would like to return a value based on the what the text is in the referenced field, so if it says "COOL, WARM, or HOT", I want it to return "Chill" for cool, "Nice" for Warm, or "Bad" for Hot. Would you know how I can set this up in a formula in excel?
Ex:
Cool | = "Chill" |
Warm | = "Nice" |
Hot | |
Warm | |
Cool | |
Cool | |
Hot | |
Warm | |
Hot |
Mar 14 2023 02:14 PM
Hi, @andii2617 you can try this nested IF formula.
=IF(A1="Cool","Chill",IF(A1="Warm","Nice",IF(A1="Hot","Bad","")))
Mar 14 2023 03:18 PM