• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Array formula causing #Value! error|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Array formula causing #Value! error|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Array formula causing #Value! error
sp_PrintTopic sp_TopicIcon
Array formula causing #Value! error
Avatar
Michael

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
October 15, 2019
sp_UserOfflineSmall Offline
1
September 25, 2020 - 3:05 pm
sp_Permalink sp_Print sp_EditHistory

Hi

First time at this so apologies if I have got the formalities wrong.

My company received a file from an external party with a complex spreadsheet the problem is that there is a formula that is coming up with a #Value! error even though the formulae works.

I have tried F9 and Ctrl Alt F9 to fix but no luck

I have tried replacing = with = to fix but no luck

The only way is to go on the cell hit F2 and then enter. The problem with this is that there is thousands of cells and I am not sure if I reopen I will need to do it again.

The formula is also surrounded by {} before I hit F2 and enter then it is removed

Any ideas.

I have seen this before when changing the cell format but not to this extent.

Regards

Robert 

sp_AnswersTopicSeeAnswer See Answer
Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
September 25, 2020 - 3:25 pm
sp_Permalink sp_Print

I would have tried f9 to be fair.

Maybe something like this could work? (back up the worksheet first!)

Select the range of formulas then run the F2Each

Sub F2Each()

Dim c As Range
Dim r As Range

Set r = Selection

For Each c In r

c.Select
Application.SendKeys "{f2}"

Next c

End Sub

Avatar
Michael

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
October 15, 2019
sp_UserOfflineSmall Offline
3
September 25, 2020 - 3:49 pm
sp_Permalink sp_Print

Thanks for the suggestion but unfortunately that did not work

Could it be a version issue, our version is 2016

Also not sure if you had seen it but I added "The formula is also surrounded by {} before I hit F2 and enter then it is removed"

Avatar
Michael

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
October 15, 2019
sp_UserOfflineSmall Offline
4
September 25, 2020 - 3:56 pm
sp_Permalink sp_Print

It looks to be a version issue. I opened in Office 365 and it worked immediately

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
September 25, 2020 - 4:32 pm
sp_Permalink sp_Print

Hi Robert,

The {} means it's an array formula.

Excel Array Formulae

I'd say the forumla(e) is(are) referencing some cells that result in #VALUE whilst some of the cells give a valid result.

Without your workbook I can't say any more though - please attach it to your reply.

Regards

Phil

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
6
September 25, 2020 - 4:32 pm
sp_Permalink sp_Print

What was the formulla?

Avatar
Michael

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
October 15, 2019
sp_UserOfflineSmall Offline
7
September 28, 2020 - 7:15 am
sp_Permalink sp_Print

Hi 

I have opened it in 365 and no issues. I then saved as xlsb and xls but when I open and end hit edit the problem is there again.

One of the formulae id =IF($B11=0,SUM(INDIRECT(CONCATENATE(ADDRESS(ROW()-$B10,COLUMN()-1,4),":",ADDRESS(ROW()-1,COLUMN()-1,4))))/INDIRECT(CONCATENATE("$B",(ROW()-1))),"") with curly brackets around it

When I edit the cell they disappear and the formula works.

In 365 are there any other options to change the compatibility or remove the array issue.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
8
September 28, 2020 - 8:25 am
sp_Permalink sp_Print

Hello,

Did you check the blog page Phil linked to in previous post?
Another good post to read is this about the new dynamic array formulas.
I also suggest you to check this Microsoft guideline on array formulas.

Please attach a sample file with the formulas if you need more help.

Br,
Anders

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
9
September 28, 2020 - 10:14 am
sp_Permalink sp_Print

Hi Robert,

The curly braces indicate that this formula was entered with the key strokes CTRL+SHIFT+ENTER to make it an array formula, as Phil explained. When you enter a formula with CTRL+SHIFT+ENTER Excel automatically puts the curly braces around it, this is a visual indicator to users that this formula has been array entered. When you enter array formulas they evaluate differently to regular formulas entered with just the ENTER key. Please read the post Phil linked to for a better understanding.

365 versions of Excel now treat ALL formulas as array formulas even though we only press ENTER (please see the post Anders linked to for Dynamic Arrays). It doesn't put the curly braces around the formula because, as I said, all formulas are now treated as array entered. You can still press CTRL+SHIFT+ENTER in 365 and it will put the curly braces around the formula for the purpose of backward compatibility, but the results will be the same in 365 either way you enter it.

When you save a file as .xls you are reverting the functionality of Excel back to Excel 2003, so your formula will not evaluate as an array formula without entering it with CTRL+SHIFT+ENTER. Hence why you get errors when you open the file after editing the formulas and only pressing ENTER to complete them.

Some formulas will evaluate in earlier versions of Excel with either CTRL+SHIFT+ENTER or just ENTER but you're likely to get different results. e.g. one result might be an error and the other result evaluates or you might be two results or two errors. It's easy to make a mistake.

There will be something wrong with the results being returned by the ADDRESS part of your formula. You can refer to this tutorial on troubleshooting formula errors, or you can share the file with us.

Mynda

sp_AnswersTopicAnswer
Answers Post
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: s Ramchandran, Kristine Storti, Shanna Henseler
Guest(s) 7
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27237

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.