Standard evaluation practice for most software languages is that as soon as a TRUE condition is met, the rest of the "IF" logic is ignored. So as soon as your calc hits that '3364' clause, it's done and doesn't move on to the 3rd line.
Further, you are essentially expecting your calc to return two different values for the same row: one for '3364' and a different one for '33* '. A calc only returns one value.
If you want something counted in two different totals, make two separate calcs.
Is it possible to do this outside of making another calculation?
When I create the calculation I have my original minus the line below on my Row
ELSEIF LEFT([naics],4) = '3364' THEN 'Aerospace and Defense'
When I create another calculation and place it beside the above calculation in my row, it loses the formatting and lists each naics code individually.
IF LEFT([naics],4) = '3364' THEN 'Aerospace and Defense' ELSE [naics] END
You have to have two different calcs if you want the same row counted in two different totals.
There is no way around that. In fact, for what you are doing, you will need to have a calc for Aerospace and Defense, and another calc for Advanced Business Services 52, and another for Advanced Manufacturing, etc.
// Aerospace and Defense Calc
IF LEFT([naics],4) = '3364' THEN 1 END
// Advanced Business Services 52 Calc
IF LEFT([naics],2) = '52' THEN 1 END
// Advanced Manufacturing Calc
IF LEFT([naics],2) = '33' THEN 1 END
Then SUM([Aerospace and Defense Calc]) will give you the count for that one. And SUM([Advanced Manufacturing Calc]) will give you that count. Etc.
It's the only way to get one row to show up in two different counts like you want.