User Profile
tomsuters
Copper Contributor
Joined 3 years ago
User Widgets
Recent Discussions
Re: CHALLENGE: find column formula for validation of mandatory columns in a table with user data
dear mtarler JosWoolley Detlef_Lewin just to let you know I am still looking into this and will get back to you in the coming days with an extensive analysis. Conclusion so far is that I still dhave not seen or found a solution. Regards tomsuters2KViews0likes0CommentsCHALLENGE: find column formula for validation of mandatory columns in a table with user data
You are challenged to come up with a solution for the problem described here: My first attempt was to try and use an array formula of the following form: {=SOM(N(ISEMPTY(INDIRECT(<a list of cell references to the mandatory cells in a row>)))=0} I failed as it turned out that EXCEL does not allow the INDIRECT() function to be used in array formulas and you need INDIRECT() to create the list of references to the mandatory cells in a row of table 2 from the column names in table 1. I found a similar task with the same problem here: https://stackoverflow.com/questions/19787285/is-it-possible-to-have-array-as-an-argument-to-indirect-so-indirect-returns I look forward to your suggestions. Please bear in mind that the formula should not be changed if the content of table 1 is changed!2.3KViews0likes7CommentsRe: array formula gives wrong result when using generated cel ranges
JosWoolley dear JosWoolley mtarler HansVogelaar the background for this whole discussion was a Excel task for which I still fail to find a solution and that I now posted as a challenge to the whole: community: https://techcommunity.microsoft.com/t5/excel/challenge-find-column-formula-for-validation-of-rmandatory/td-p/3733689 I look forward to your suggestions! Tom3.1KViews0likes0CommentsRe: error in ADRES() function using an array constant parameter
JosWoolley Hi Jos, in fact my Excel version allowed me (to your surprise?) to use the comma as my Windows decimal sign and ALSO as horizontal separator in array constants leading to the erroneous result you described. Option 1 and 2 solved this by keeping the horizontal separator ni Excel as is and change the decimal sign in either Windows or Excel. They both work fine but I found the consequence "inconvenient" as the number representation changes in Excel respectively all Windows applications (without having to change the applications themself). So the obvious third option is to try to use a different horizontal separator sign in Excel but to my knowledge Excel does not support such an option or says which other sign to use in case the comma clashes with the decimal sign. Hence my question if such an option or fall-back sign for array consatants exist. In the mean time I learnt that the backslash sign '\' forfills that purpose alhough this is nowhere documented or officially supported by Excel I believe. In fact I found that if you switch the Windows locale from comma to dot, Excel automatically replaces the backslash by a comma in the array contants of the formula and vv!! So for me this problem now seems to be solved with t5he backslash and thx again for your input. Below I try to summarize what Excel computes for the 4 different cases: I already want to attract your attention to my next problem with array constants in ADRES() in combination with INDIRECT() but I will start a new topic for that. Hope you can help out there too! Tom1.4KViews0likes0CommentsRe: error in ADRES() function using an array constant parameter
JosWoolley thx very much you are correct! Now I have three options to let Excel detect the separator in an array constant: change the decimal sign in Excel options to something else than comma. Downside: all my excel files now behave different from all other Windows applications wrt number notation. change the Windows locale settings for decimal sign to something else than comma which makes all applications behave different from what I am used to wrt number notation. set the separator for array constants to a different sign in Excel. This would be my preferred option but I don't know where or how to do that ni Excel. comment to MSFT: silently rounding fractions to whole numbers without warning or error seems not only very odd but also leaves you completely in the dark what goes wrong! Are there more Excel functions where fractions get silently rounded off?1.4KViews0likes2Commentserror in ADRES() function using an array constant parameter
consider the following ADRES matrix formula with an array constant as the column parameter: ={ADRES(33;{1,2;3,4}) It gives the following 2x2 matrix as result: $A$33 $A$33 $C$33 $C$33 It seems only the column part gets computed, not the row part. What is wrong?Solved1.6KViews0likes6CommentsRe: array formula gives wrong result when using generated cel ranges
mtarler Thx for pointing to the INDEX function. I actually found that a combination of the INDEX function with the INDIRECT works correctly as follows: =SUM(N(ISBLANK(INDEX(INDIRECT(ADRES(ROW();2;1;1) & ":" & ADRES(ROW();5;1;1));0)))) In fact in this way I can use any function in combination with ADRES and INDIRECT to compute the cell range for counting blank cells. I need this in my application as the origin,, #rows and #columns of the cellrange are not fixed but are values computed elsewhere in the spreadsheet. With his workaround we can close the discussion I think. Thx to mtarler and HansVogelaar for participating! kind regards @tomsuters3.4KViews0likes2CommentsRe: array formula gives wrong result when using generated cel ranges
mtarler thx for your reply. Indeed vey weird. Is there someone from Microsoft or another guru on this community that can 1) confirm our findings 2) explain why we get this error and 3) maybe even suggest a work-around?3.4KViews0likes5CommentsRe: array formula gives wrong result when using generated cel ranges
mtarler when stepping through the evaluation steps of my formula #3 (see pictures below), I discovered that Excel adds curly brackets around the result of the ROW() function.. This could be caused by the CSE action for the formula and 1) the fact that ROW() also allows array arguments and 2) is used inside the ISEMPTY() array function? I checked that the use of other non-array functions than ROW() inside ISEMPTY() do not create curly brackets around their result and do not cause errors. Maybe you can check ithrough formula evaluation that curly brackets do not appear around the ROW() result in your formula #3? That would at least show a difference between our CSE environments and would explain why the use of array capable functions within in array capable functions in my Excel version does not work. Thx for your time and effort.3.4KViews0likes9Commentsarray formula gives wrong result when using generated cel ranges
has anyone encountered the problem shown in the figure below before? Is there a way to use generated cell ranges in combination with array functions? Thx in advance Tom Suters PS I use excel 2013 studentversion on Windows 10Solved3.9KViews0likes18Comments
Recent Blog Articles
No content to show