canthony24
Board Regular
- Joined
- Mar 24, 2016
- Messages
- 70
I'm trying to figure out how to write this formula. The user can select either 'Cases' or 'Pounds' in the beginning.
B2 is a drop down list 'Cases' or 'Pounds'.
AD3 is a drop down list 'Yes' or 'No'.
AF3 is a drop down list 'Yes' or 'No'.
Pivot_CasesAV36 is the result if 'Cases' and 'Yes' 'Yes' are selected.
Pivot_CasesAO36 is the false result if AD3 and AF3 aren't both 'Yes'.
Pivot_PoundsAV36 is the result if 'Pounds' and 'Yes' 'Yes' are selected.
Pivot_PoundsAO36 is the false result if AD3 and AF3 aren't both 'Yes'.
So far I have this, but when it comes to entering the FALSE statement and the 'Pounds' results, I get tripped up. How can I add the 'Pounds' now? I can get the 'Cases' but can't figure out the next one. Maybe OR?
=IF(AND($B$2="Cases",$AD$3="yes",$AF$3="yes"),Pivot_Cases!AV36,Pivot_Cases!AO36)
B2 is a drop down list 'Cases' or 'Pounds'.
AD3 is a drop down list 'Yes' or 'No'.
AF3 is a drop down list 'Yes' or 'No'.
Pivot_CasesAV36 is the result if 'Cases' and 'Yes' 'Yes' are selected.
Pivot_CasesAO36 is the false result if AD3 and AF3 aren't both 'Yes'.
Pivot_PoundsAV36 is the result if 'Pounds' and 'Yes' 'Yes' are selected.
Pivot_PoundsAO36 is the false result if AD3 and AF3 aren't both 'Yes'.
So far I have this, but when it comes to entering the FALSE statement and the 'Pounds' results, I get tripped up. How can I add the 'Pounds' now? I can get the 'Cases' but can't figure out the next one. Maybe OR?
=IF(AND($B$2="Cases",$AD$3="yes",$AF$3="yes"),Pivot_Cases!AV36,Pivot_Cases!AO36)