+ Reply to Thread
Results 1 to 15 of 15

IF formula to ignore result if both INDEX functions return from the same cell?

  1. #1
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    IF formula to ignore result if both INDEX functions return from the same cell?

    I am trying to track change using formulas that are flexible enough to recognise the first and last cells with values in them, rather than picking particular columns. The trouble is, that when I want to use a formula to tell me what difference, if any, there is between the first and last values, sometimes they both come from the same column. When that is the case (as in the rows highlighted in yellow in my workbook), I want that to be clear without having to manually check.

    I'm using LET and IFS, so I wonder if there's an IF function I can add that doesn't rely on values but rather the fact that both formulas track to the same cell.
    It would basically be IF first and last come from/are in the same cell, then "text". Any help would be very gratefully received.
    Attached Files Attached Files
    Last edited by georgie_t; 11-16-2021 at 02:09 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Thank you, I'm going to try this today!

  4. #4
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Unfortunately I can't get this to work - Excel won't read First and Last as names in the calculations for Firsti and Lasti. I appreciate the suggestion though, thank you.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Not sure what you mean by "Excel won't read First and Last as names in the calculations for Firsti and Lasti."
    Did you try the formula with the test data you supplied?

  6. #6
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Apologies - I made an error in transferring the formula to my actual worksheet and had too many arguments in there. I'm still having a little trouble though; in one case in the attached file, the formula is returning 'gone up' when it should be 'gone down', and in another, the formula is returning an array instead of a single value. If you have time and don't mind, are you able to explain what's gone wrong? Thanks again.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    That looks to be the same workbook you uploaded originally & doesn't have the formula I suggested, so cannot see what problems you are getting.

  8. #8
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Sorry about that, I didn't realise I had saved it in two locations.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Thanks for that, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    A slightly shorter version
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    This is brilliant, thank you so much. Ideally I'd like to tweak it so that if every entry says "Insufficient data" (as in Row 11, Bill), then this also returns "Insufficient data", rather than saying "No change". If you still have the patience, would you mind helping me with where I would insert that condition? I'm sorry to be a pain, I really am so thankful for your help.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    Absolute magic, thank you a million times!

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    You're welcome & thanks for the feedback.

  15. #15
    Registered User
    Join Date
    11-09-2021
    Location
    Sheffield
    MS-Off Ver
    Office 365
    Posts
    15

    Re: IF formula to ignore result if both INDEX functions return from the same cell?

    I'm so grateful for your expertise and your patience.

+ 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. Hyperlink to INDEX Formula Result Cell
    By boredinosaur in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2021, 10:06 AM
  2. INDEX and AGGREGATE to ignore 0's and functions
    By Allerdrengen in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-18-2018, 01:07 PM
  3. [SOLVED] Ignore formula and return zero if cell is blank
    By kev2050 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-22-2018, 08:27 AM
  4. [SOLVED] Cannot combine IF,AND, INDEX functions to produce a clean result
    By Excel Learner2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2014, 08:05 AM
  5. [SOLVED] An INDEX MATCH formula has blank cell - need to ignore or delete
    By rls231 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2013, 11:13 PM
  6. Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 PM
  7. [SOLVED] using muliple functions to return one result
    By tauwnia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2006, 04:50 PM

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