title: Excel SUMIF variations
body: <p>I'm trying to make a SUMIF function like this one
  <code>=SUMIF(OUT!$G$22:$G$70;'2018'!$B4;OUT!$J$22:$J$70)</code></p>
  
  <p>But i would like instead of giving the name of the sheet OUT, i want the excel to read de name of the sheet from an other cell like i show on the img.</p>
  
  <p>I tried <code>=SUMIF(CELL("contents";E2)!$G$22:$G$70;'2018'!$B4;CELL("contents";E2)!$J$22:$J$70)</code></p>
  
  <p>but still not working. Anyone knows how to do it?</p>
  
  <p>Excel image</p>
  
  <p><a href="https://i.stack.imgur.com/lXwmo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lXwmo.png" alt="enter image description here"></a></p>