Using SUM and INDIRECT

Vikranth

New Member
Joined
Nov 15, 2013
Messages
7
I am using these formula

=SUM('18'!N:N)
=COUNT('18'!A:A)

I need to enter the sheet name in cell A1 instead of the sheet number 18 in the formula using INDIRECT for both the formulas. Please help.

It would also be helpful if you could explain me the formula you are giving to me.

Thanks in advance.
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

=SUM(INDIRECT("'"&A1&"'!N:N"))

Not much to explain really. The single quotation marks are not strictly necessary in your case, since your tab name (18) contains no spacing, so you could actually use:

=SUM(INDIRECT(A1&"!N:N"))

though it's perhaps good practice in any case to include them (no harm done - and you may wish to apply the formula to sheets which do have that condition later on).

Regards
 
Upvote 0
Thank you very much, I also have tried the other formula let me know if is correct ?

=COUNT(INDIRECT("'"&A1&"'!A:A"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top