I'm looking for a formula where two conditions are met. i.e. I would like to see the information in cell F1 appear in G1 if D1=San Diego and B1=Y or I would like it left blank if the conditions are not met.
Thank you for your help
I'm looking for a formula where two conditions are met. i.e. I would like to see the information in cell F1 appear in G1 if D1=San Diego and B1=Y or I would like it left blank if the conditions are not met.
Thank you for your help
Try SUMPRODUCT in cell G1:
=SUMPRODUCT(--(D1="San Diego")*(B1="Y")*(F1))
This will return F1 if both conditions are met or 0 if they are not met. If you want to return blank instead of zero, use:
=IF(SUMPRODUCT(--(D1="San Diego")*(B1="Y")*(F1))=0,"",SUMPRODUCT(--(D1="San Diego")*(B1="Y")*(F1)))
Hi,
Try
=IF(AND(B1="Y",D1="San Diego"),F1,"")
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks