Return value if and offset value match

MoOsEBoT88

New Member
Joined
Sep 13, 2011
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I have this formula but it’s not working

I want to check column a for holiday and if column c says buildinga and list all the current team that are on holiday

Excel Formula:
="HOLS= " &TEXTJOIN(", ",TRUE,IF(AND(A:A="HOL",C:C="buildinga"),OFFSET(A:A,0,1),""))

But I don’t get anything back?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I would strongly recommend against using whole column references like that. Surely your data is nothing like 1,000,000+ rows?

Try something like this. Where I have 1000, use a row number that is big enough to cover any expected data without being excessive.

Excel Formula:
="HOLS= " &TEXTJOIN(", ",1,FILTER(B2:B1000,(A2:A1000="HOL")*(C2:C1000="buildinga"),""))
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top