Hey,
So there are 3 tables? Then the last formula (SUMPRODUCT) will most likely be the issue now as it is using a structured reference from table 1 (so has to be written alongside the table if you will) - that's probably why the errors are for the first 2 rows (6 & 7) then as the table 1 starts on row 8 you get different messages from row 8 onwards. It's hard to visualise this with a 3rd table, have you got some link to the file?
waa sorry for this.
so here's how it's set up as an example:
sheet lkups:
Table47 data starts on row 2
[TABLE="width: 77"]
<tbody>[TR]
[TD]Priority 1[/TD]
[/TR]
[TR]
[TD]Bosnia[/TD]
[/TR]
[TR]
[TD]Croatia[/TD]
[/TR]
[TR]
[TD]El Salvador[/TD]
[/TR]
[TR]
[TD]Greece[/TD]
[/TR]
</tbody>[/TABLE]
sheet Project Timelines
so Table1 data starts on row 8
[TABLE="width: 256"]
<tbody>[TR]
[TD="class: xl75, width: 64"]Country[/TD]
[TD="class: xl76, width: 64"]Client Count[/TD]
[TD="class: xl77, width: 64"]POA / Clients[/TD]
[TD="class: xl78, width: 64"]OOS / Lost[/TD]
[/TR]
[TR]
[TD="class: xl79, width: 64"]Angola[/TD]
[TD="class: xl80, width: 64"]Clients (0)[/TD]
[TD="class: xl81, width: 64"]XXX Partner[/TD]
[TD="class: xl82, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl83, width: 64"]Angola[/TD]
[TD="class: xl84, width: 64"][/TD]
[TD="class: xl85, width: 64"]ABC[/TD]
[TD="class: xl86, width: 64"]OOS[/TD]
[/TR]
[TR]
[TD="class: xl83, width: 64"]Bosnia[/TD]
[TD="class: xl84, width: 64"][/TD]
[TD="class: xl85, width: 64"]ABC[/TD]
[TD="class: xl86, width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
sheet Top Clients
(this is where the formula is returning the value)
Table16
starts on row 6 (row 5 has strategic)
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl75, width: 64"]Client Name[/TD]
[TD="class: xl76, width: 64"]Priority 1
2019[/TD]
[/TR]
[TR]
[TD="class: xl77, width: 64"]STRATEGIC[/TD]
[TD="class: xl78, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl79"]ABC[/TD]
[TD="class: xl80"]#VALUE![/TD]
[/TR]
</tbody>[/TABLE]
I want to match against the client in table 16 and count them from Table 1 as long as they're not 'OOS' 'Lost' and only if the country is matched on table47 priorty1 (lkups tab)
=COUNTIFS(Table1[POA / Clients],"*"&[@[Client Name]]&"*",Table1[OOS / Lost],"<>OOS",Table1[OOS / Lost],"<>LOST") + SUMPRODUCT(--(Table1[@Country]=Table47[Priority 1]))
so in above example it should return value as 1 since bosnia and ABC are on the list and are not marked as OOS/Lost
complicated or what!?