+ Reply to Thread
Results 1 to 5 of 5

After sorting with two yes conditions find difference '

  1. #1
    Forum Contributor
    Join Date
    01-07-2023
    Location
    USA
    MS-Off Ver
    MS 365
    Posts
    151

    After sorting with two yes conditions find difference '

    Hello

    I attached I have a sample of a data set sorted with vlookup

    What im wanting to do is find the value from previous cell but only when the two yes values occur


    Hope this is clear

    Thank You
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: After sorting with two yes conditions find difference '

    Remoive ALL expected results, then this in M3 and copy down:

    =IF(AND(J3="YES",K3="YES"),HSTACK(F3-F2,G3-G2),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    01-07-2023
    Location
    USA
    MS-Off Ver
    MS 365
    Posts
    151

    Re: After sorting with two yes conditions find difference '

    im getting #NAME?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: After sorting with two yes conditions find difference '

    You shouldn't - your profile says Excel 365. Is it fully up-to-date? Or is your profile wrong?

    If you don't have 365, then please change your profile. You'd then need two separate formulae copied down:

    =IF(AND(J3="YES",K3="YES"),F3-F2,"")

    =IF(AND(J3="YES",K3="YES"),G3-G2,"")

    PS HSTACK was introduced in March 2022, so if your 365 predates that, you need to run an update.
    Last edited by AliGW; 08-27-2024 at 04:46 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: After sorting with two yes conditions find difference '

    Thanks for the rep. Your foruum profile has not been updated - if you are not using 365, then it needs doing, please.

+ 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. Calculate time difference with multiple conditions
    By KrishnaR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2023, 02:46 AM
  2. [SOLVED] Calculate time difference with conditions
    By KrishnaR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2023, 04:14 AM
  3. Replies: 1
    Last Post: 11-28-2020, 12:23 AM
  4. date difference (in days) with conditions
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 10-28-2020, 09:21 PM
  5. [SOLVED] Revisit: Summing with date difference and conditions
    By ZedaG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2017, 08:53 AM
  6. [SOLVED] Summing with date difference and conditions
    By ZedaG in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2017, 12:26 PM
  7. [SOLVED] How to find the difference betwwen two rows based on conditions
    By Thinker8 in forum Excel General
    Replies: 11
    Last Post: 11-08-2013, 04:32 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