+ Reply to Thread
Results 1 to 8 of 8

reference to a full row or column doesn't seem to work anylonger

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Stockholm
    MS-Off Ver
    Office 365
    Posts
    5

    Question reference to a full row or column doesn't seem to work anylonger

    I haven't been using excel as much for quite a while and now suddenly my normal way of writing formulas doesn't seem to work anylonger. I have a habit to refer to cells as the whole row (e.g. 5:5) instead of C:5 (if the formula is in the C column). This in order to make it easy to quickly see that it is the row number that matters - the C is just a redundant piece of information when you try to understand a model built by someone else (or myself a while ago).

    However, when I do this now I get either a blank value (if using several references in the same formula) or #SPILL! if I just use one reference of the kind I used to. Is there something that has changed in excel and does this mean I am forced to refer to both the column and the row going forward (this would be quite a large step backward in my opinion)?

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: reference to a full row or column doesn't seem to work anylonger

    If you're getting #SPILL! errors, you're NO LONGER using Excel/Office 2010, so your profile is out of date.

    In that sense, yes, indeed, Excel has changed. In brief, you need to change your ways OR revert to an older version of Excel/Office. Those are your ONLY alternatives.

    I can make many guesses about what's going wrong, but they all boil down to this: your use/reliance on whole row or whole column references used to work in older versions of Excel due to implicit range indexing. The latest Excel in Office 365 no longer works that way, and most formulas using whole row/column references are going to return IMMENSE array results. If you want to use the latest version of Excel/Office, you're going to have to accept that your preference for whole row/column references was always POOR PRACTICE (even if you believe otherwise), and it no longer works in the latest Excel.

    If you want more specific advise, you need to provide more details, such as actual formulas which are now causing problems. Otherwise, expect only generalities as responses.

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    Stockholm
    MS-Off Ver
    Office 365
    Posts
    5

    Re: reference to a full row or column doesn't seem to work anylonger

    Thanks for a speedy reply which completely answers my question. I realise I have to adapt to what the excel developers have decided is standard practise.

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: reference to a full row or column doesn't seem to work anylonger

    Quote Originally Posted by CFF View Post
    . . . I have to adapt to what the excel developers have decided is standard practise.
    Not just Excel developers. Whole row/column references have always been bad ideas except as necessary components in generating dynamic ranges, e.g.,

    INDEX($1:$1048576,a,b):INDEX($1:$1048576,c,d)

    which would be a reference to a limited-size range impervious to row/column insertion/deletion. Whole row/column references are analogous to not using Option Explicit in VBA modules, and not declaring any variables with Dim statements, thus making ALL variables global Variants. One could do so, and one could get away with it for a while, but it would eventually cause far more problems than it may at first have seemed to solve.

  5. #5
    Registered User
    Join Date
    05-18-2012
    Location
    Stockholm
    MS-Off Ver
    Office 365
    Posts
    5

    Re: reference to a full row or column doesn't seem to work anylonger

    Well, when e.g. modelling a P&L it was really nice to be able to e.g. name a row "NetSales" and another "GrossProfit" and thus be able to read the formula for the margin in "plain text" ("=GrossProfit/NetSales"). It was indeed a long time ago since I did financial modelling at GS, but at that time, at least in that company it was definitely considered as "Good Practise" to name column and rows in that way - in order to be as clear as possible for any outsider who was to use the model.

    Anyway, not much I can do about it, but to accept

    Thanks again for your help!

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: reference to a full row or column doesn't seem to work anylonger

    Perhaps this could be a work around:
    1. Net Sales refers to: =OFFSET(Sheet1!$B$2,,,1,COUNT(Sheet1!$B$2:$XFD$2))
    2. Gross Profit refers to: =OFFSET(Sheet1!$B$3,,,1,COUNT(Sheet1!$B$3:$XFD$3))
    3. The ratio formula is: =SUM(Gross_Profit)/SUM(Net_Sales)
    Granted that I am using the 2019 version so I don't know how this would work with "Spill".
    Let us know if you have any questions.
    Attached Files Attached Files
    Last edited by JeteMc; 12-09-2020 at 08:20 PM. Reason: Error in formula
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    05-18-2012
    Location
    Stockholm
    MS-Off Ver
    Office 365
    Posts
    5

    Re: reference to a full row or column doesn't seem to work anylonger

    Thanks! It seems that it could definitely work, but now by chance I just realized that it seems as maybe the "at"-symbol has been added to give the same functionality i used to have.

    So I can now name "='at'Sheet1!$A:$A" "Net_sales" and "='at'Sheet1!$A:$A" "Gross_profit" and then my formula for calculating the Gross margin be the same as before: "Gross_profit"/"Net_sales".

    Does that sound correct?

    As I, when trying to post this reply, got the error message "You are not allowed to post any kinds of links, images or videos until you post a few times.!" I replaced the symbol with the letters at

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: reference to a full row or column doesn't seem to work anylonger

    I feel that I would need to see an example of =@Sheet1!$A:$A being used in an .xlsx file in order to understand.
    Then again it could be a functionality in the 365 version which I will not be able to see as I use the 2019 version.
    By the way, if you select the @ symbol and then select B, for bold, you can bypass the error message.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VLOOKUP doesn't work when lookup value is a cell reference!
    By wes228 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2016, 03:07 PM
  2. Can anyone tell me why my cells reference doesn't work in 2010
    By Darthzo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2014, 12:37 PM
  3. Reference Cell as range().value doesn't work
    By cmdrdanno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2013, 04:31 PM
  4. Link from an external reference doesn't work
    By tfurnivall in forum Suggestions for Improvement
    Replies: 2
    Last Post: 08-04-2013, 10:30 AM
  5. Run doesn't work in reference workbook
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2010, 02:55 PM
  6. Run doesn't work in xlstart reference file
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2010, 05:34 PM
  7. Excel full screen doesn't work.
    By Jaymond Flurrie in forum Excel General
    Replies: 9
    Last Post: 12-06-2008, 09:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1