+ Reply to Thread
Results 1 to 10 of 10

Return all texts where the adjacent cell is >0

  1. #1
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Return all texts where the adjacent cell is >0

    Hi,

    Inspired by this thread this thread, I could really use some help with a formula that returns all values, where the adjacent cell is >0. Column A will be texts, column B will be numbers.

    PVToaMr.png

    Thanks in advance!
    Attached Files Attached Files
    Last edited by Enounce; 03-06-2021 at 02:24 PM.

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

    Re: Return all texts where the adjacent cell is >0

    How do you want the results returned? In a single cell, in rows, in columns?

  3. #3
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Re: Return all texts where the adjacent cell is >0

    As an array where all results follow each other down one column.

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Return all texts where the adjacent cell is >0

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Return all texts where the adjacent cell is >0

    A
    B
    C
    D
    E
    1
    a
    1
    a-c-d-r
    2
    b
    -2
    3
    c
    3
    4
    d
    4
    5
    r
    5




    E1=TEXTJOIN("-",TRUE,IF(B1:B100>0,A1:A100,""))

  6. #6
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Re: Return all texts where the adjacent cell is >0

    Hi, CARACALLA. We're close, however, I need every result in its own line. I've updated the original post with an example.

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

    Re: Return all texts where the adjacent cell is >0

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

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Return all texts where the adjacent cell is >0

    works for all versions of excel


    D2=IFERROR(INDEX($A$2:$A$100,SMALL(IF($B$2:$B$100>0,ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($A$2:A2))),"")

    Control+shift+enter . For office 365 only enter

    copy down

  9. #9
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Re: Return all texts where the adjacent cell is >0

    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This worked perfectly, thanks!

    Thanks to you CARACALLA as well.

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

    Re: Return all texts where the adjacent cell is >0

    You're welcome & thanks for the feedback.

+ 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. Replies: 9
    Last Post: 05-03-2020, 03:01 AM
  2. Replies: 11
    Last Post: 04-09-2019, 09:50 AM
  3. Lookup value and return adjacent cell
    By natty76 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-24-2019, 11:32 AM
  4. Replies: 3
    Last Post: 07-21-2015, 05:10 PM
  5. Replies: 11
    Last Post: 01-27-2015, 01:47 PM
  6. Search for multiple texts in cell, return specific text
    By mariur89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-24-2014, 06:43 PM
  7. Replies: 10
    Last Post: 09-18-2014, 09:36 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