Forum Discussion
Need a Formula to Review Two Criteria and Return Multiple Values
=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.
- Holly_MichaelsonFeb 06, 2023Copper ContributorOliverScheurich
Thank you for taking the time to create this complicated formula. I would never have figured that out! I apologize for my delayed response. I had set the projcect aside when I got stuck and have finally resumed today.
I used this formula, but I get nothing but blanks. I don't get any values in column AF, and no error messages about the formula.
Cannot seem to figure out what I am doing wrong. Mind helping again?
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",""))))- andii2617Mar 14, 2023Copper Contributor
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 - OliverScheurichMar 14, 2023Gold Contributor
Hi, andii2617 you can try this nested IF formula.
=IF(A1="Cool","Chill",IF(A1="Warm","Nice",IF(A1="Hot","Bad","")))
- OliverScheurichFeb 06, 2023Gold Contributor
=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?