Indirect Function with dash"-"

EJAY

New Member
Joined
Apr 26, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I am using an indirect function where the sheet names contain a dash"-" it is a multiple sheet workbook +-70 sheets that I receive on a monthly basis.

The Formula is
=SUMIFS(INDIRECT(C3&"!$F:$F"),INDIRECT(C3&"!$A:$A"),">"&E$3,INDIRECT(C3&"!$A:$A"),"<="&E$2,INDIRECT(C3&"!B:B"),$C$4)

Where C3 is the sheet name.

Please assist with the formula? as it is tiring process to rename all the sheets on a monthly basis.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi & welcome to MrExcel.
You need to wrap the sheet name in apostrophes like
Excel Formula:
INDIRECT("'"&C3&"'!$F:$F")
 
Upvote 0
Solution
Good Day Fluff,
Thank you very much it worked!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,308
Messages
6,124,178
Members
449,146
Latest member
el_gazar

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