2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Function that references a cell but the referencing cell's value isn't being used when it's evaluating the function and the cells name is being used

I'm producing an excel file .xls with Gembox, and it's required to be .xls, and I get a file. In it I have a cell with a function in it but it's returning false, but if I copy the function to a new cell it returns true. Also if I click in the function bar and out it also returns true. So I went to evaluate the formula and get this.

https://preview.redd.it/6hhwklnt4r2h1.png?width=518&format=png&auto=webp&s=06c29c62b8ce2c8d27c3d6f6425f82b6121ee1d2

https://preview.redd.it/pr9276ku4r2h1.png?width=514&format=png&auto=webp&s=bdd6479ceb9d698e4395d28c1cf13408760cd5fb

As you can see it's initially trying to evaluate the part ISTEXT(D48) as an entire step at once, skipping the reference to the other cell, which fails. But if you look at it after I've clicked in it does this.

https://preview.redd.it/q38ufp0w4r2h1.png?width=521&format=png&auto=webp&s=400b72b24a20c83dab2bc2053cfbf77a2c84c22b

https://preview.redd.it/4vgautuw4r2h1.png?width=517&format=png&auto=webp&s=a06a5736bcfed37e3fe4e08d7d2de15857f56989

Which it's first evaluating the reference and then correctly going to check if it's text. So I want this

Thing is I have thousands of cells with formulas that are behaving this way, so going in and clicking in them all isn't feasible, and there's too many columns to make text to columns on every column feasible either. Preferably I'd like it to just work once downloaded. Secondly being able to fix them all at once would be satisfactory.

The calculation is set to automatic. Calculate now and calculate sheet don't do anything. Cause the function is "calculating" it's just that the checks to make sure the fields are proper values are failing cause it's not referencing the cell's value.

EDIT:
Here's another function in the workbook having an issue. =IF(AND(DD14<>1,ISNUMBER(SEARCH("nc",U14))),1,"") The SEARCH("nc",U14) is again being evaluated as is and not replacing the U14 with the value in U14 before running the search function

submitted by /u/snihctuh
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#financial modeling with spreadsheets
#Excel compatibility
#Excel alternatives for data analysis
#Excel alternatives
#rows.com
#AI formula generation techniques
#formula generator
#Excel
#function
#Gembox
#formula
#cell
#evaluate
#reference
#ISTEXT
#SEARCH
#text
#automatic calculation
#ISNUMBER
#U14