Formula help

kirstypie

Board Regular
Joined
Nov 11, 2004
Messages
96
I have a formula that looks like this:
=AVERAGE('1:30'!C42)

The formula is taking the average of a certain cell (C42) from each of the sheets numbered 1-30. Each sheet represents a day of the month.

However in one workbook that I am working on, it will change the formula to this:
=AVERAGE('1:[30]30'!C42)

If I delete the extra [30], it just puts it right back into the formula.

The formula that Excel puts in there gives a result of #REF!, so it's not working. Anyone know how I can make it take the formula that I type in there?

the weird thing is this formula works just fine in other workbooks that I have (for other months), so I don't know why it's putting up a fight in this one workbook.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi,

The following formula will resolve your issue:

=AVERAGE(Sheet1:Sheet30!C43)

The formula that you suggested will not work on my 2007 - what version are you running??

Ian
 
Upvote 0
Hi,

I don't mean to be rude but are you typing the formula in or copy/paste?

When I type the formula in it works ok (2007) but when I copy/paste Excel adds [30]
I also get #REF! when a sheet doesn't exist.

Just a thought

Ak
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

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