+ Reply to Thread
Results 1 to 5 of 5

Sorting Issue Using a Nested Formula

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Sorting Issue Using a Nested Formula

    Hey everyone,

    I have attached a spreadsheet with two tabs, named Over 3m Data and Replacement List.

    On the Over 3m Data tab I want to establish if sites are on the Replacement List tab and return the answer as Yes or No. To do so I used the formula

    =IF(COUNTIF('Replacement List'!$A$1:$A$74,'Over 3m Data'!A2),"Yes","No")

    This works well. However, if anyone sorts the data on the Over 3m Data tab differently, eg. by site # lowest to highest, the cell reference remains fixed. Is there any way around this?

    Hope it makes sense.

    Cheers, AV
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Sorting Issue Using a Nested Formula

    Hi,
    Replace your formula with this one:
    Please Login or Register  to view this content.
    When you make a reference to a cell in the same sheet, if you put the sheet name before (ex: 'Over 3m Data'!A2), Excel will treat this as a fixed reference and you'll get "problems" when you sort the data.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Sorting Issue Using a Nested Formula

    Hey GC Excel,

    Great, many thanks for fixing that for me, and for the explanation. Just on that explanation, does Excel therefore assume the A2 refers to the sheet on which the formula was written?

    Cheers, AV

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Sorting Issue Using a Nested Formula

    Correct. If you don't put a sheet name, Excel assumes that the cell is on the same sheet the formula is written.

  5. #5
    Registered User
    Join Date
    11-09-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Sorting Issue Using a Nested Formula

    Thanks you very much

+ 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. [SOLVED] Nested Formula Issue
    By Nuccio92 in forum Excel General
    Replies: 3
    Last Post: 08-26-2015, 05:42 AM
  2. Having an issue with an Array Formula sorting lists
    By Pershing in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2014, 09:31 AM
  3. [SOLVED] Nested IF Statement Issue
    By mbhc77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2013, 03:46 PM
  4. I am having an issue with an IF formula that contains 4 nested arguments....
    By iamjustinpowell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-22-2013, 04:00 PM
  5. [SOLVED] Issue with nested IF statement
    By Sc0tt1e in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2013, 06:44 AM
  6. [SOLVED] Nested IF Statement issue
    By jsouthgate in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2012, 04:49 PM
  7. [SOLVED] Nested IF ordering issue
    By dilly in forum Excel General
    Replies: 12
    Last Post: 05-08-2012, 10:45 AM

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