Hi.
I have a code
The number 2429 = Cell C3 in Worksheet("BAT")Please Login or Register to view this content.
Is there a way that I can reference it without directly using the number 2429?
Hi.
I have a code
The number 2429 = Cell C3 in Worksheet("BAT")Please Login or Register to view this content.
Is there a way that I can reference it without directly using the number 2429?
Hi tantcu,
Is this what you're after:
RobertPlease Login or Register to view this content.
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
Thank you so much Robert. You don't mind if I can ask one more question. Instead of Vba, if I have a formula like this : =SUMIF('2429'!$C$14:$C$363,BAT!$E48,'2429'!$F$14:$F$364). Because it has to reference a sheet "2429". This sheet populate based on cell C3 of worksheet BAT. Everytime C3 is changing the sheet will disappear and populate another sheet. I want this formula apply to all the sheet as possible. Is there a way that I can reference the number 2429 in the formula above to something else so I don't have to worry about changing the sheet. Thank you.
Try this:
=SUMIF(INDIRECT("'"&BAT!C3&"'!$C$14:$C$363"),BAT!E48,INDIRECT("'"&BAT!C3&"'!$F$14:$F$363"))
Robert
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks