Forum Discussion
Need help with Excel Formula
- Jul 04, 2022dpenhadavid Perhaps this does what you need: =IF(IFERROR(MATCH(A2,'Offer Sheet - External'!B:B,0),0)+IFERROR(MATCH(A2,'Offer Sheet - Internal'!B:B,0),0),"Closed","Open")This formula tries to match A2 in both lists. It returns a number or #NA. IFERROR captures the #NA errors and sets the value to 0. If the sum of the two is anything other than 0, it means that the Position Number was found in either of the lists (External or Internal), and will return Closed. Otherwise Open. 
Here's a solution. I consolidated your two databases--no need for two sheets for Internal vs External; just differentiate by a column showing whether it's an internal or external. Makes the formula simpler.
=IFERROR(IF(MATCH(A2,'Offer Sheet'!$B$2:$B$20,0)>0,"Closed"),"Open")
- dpenhadavidJul 04, 2022Microsoft thanks mathetes However, I cannot have the sheets for Internal & External separate as they are managed by 2 separate teams. Would it be possible to help me design a formula for 2 separate sheets? Thanks. - Riny_van_EekelenJul 04, 2022Platinum Contributordpenhadavid Perhaps this does what you need: =IF(IFERROR(MATCH(A2,'Offer Sheet - External'!B:B,0),0)+IFERROR(MATCH(A2,'Offer Sheet - Internal'!B:B,0),0),"Closed","Open")This formula tries to match A2 in both lists. It returns a number or #NA. IFERROR captures the #NA errors and sets the value to 0. If the sum of the two is anything other than 0, it means that the Position Number was found in either of the lists (External or Internal), and will return Closed. Otherwise Open. - dpenhadavidJul 04, 2022Microsoft this is amazing! Thank you so much!