Scott Young
New Member
How do I add the text of a given cell to a formula. For example, I have 4 tabs: Jan, Feb, Mar and QTR. In tab QTR, I use the formula =SUMIF(jan!$A$3:$A$4,"test",jan!C3:C4)
I want to replace the "jan" in the formula with the contents of the header cells in the QTR tab. My 3 header cells will have text Jan Feb and Mar that matches the tab names.
In essence, rather than manually changing each formula to:
=SUMIF(jan!$A$3:$A$4,"test",jan!C3:C4)
=SUMIF(feb!$A$3:$A$4,"test",feb!C3:C4)
=SUMIF(mar!$A$3:$A$4,"test",mar!C3:C4)
I want the jan, feb, mar to be filled in by the header cell contents.
Thank you.
I want to replace the "jan" in the formula with the contents of the header cells in the QTR tab. My 3 header cells will have text Jan Feb and Mar that matches the tab names.
In essence, rather than manually changing each formula to:
=SUMIF(jan!$A$3:$A$4,"test",jan!C3:C4)
=SUMIF(feb!$A$3:$A$4,"test",feb!C3:C4)
=SUMIF(mar!$A$3:$A$4,"test",mar!C3:C4)
I want the jan, feb, mar to be filled in by the header cell contents.
Thank you.