+ Reply to Thread
Results 1 to 9 of 9

list values based on other cells

  1. #1
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    91

    list values based on other cells

    Hello,Can anyone help me to list values based on other cells.
    I use =IF(MEDIAN(A2,25,40)=A2,A1,"") (if cell is between 25 and 40 ) list A1
    I can do this in few lines separately, but would be nice if i can get values i want all in one line.
    Thanks you so much
    screenshot.6797.jpg
    Attached Files Attached Files
    Last edited by Excl3454; 08-08-2021 at 02:24 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,042

    Re: list values based on other cells

    Formula:=IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)),A1,"")

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: list values based on other cells

    Maybe try

    =IF(ISNUMBER(MATCH(A2,{1,7,9},)*MATCH(A3,{3,11,22},)*MATCH(A4,{5,10,13},)),A1,"")
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,042

    Re: list values based on other cells

    Quote Originally Posted by josephteh View Post
    Formula:=IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)),A1,"")
    Amended formula:=IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)*VLOOKUP(A3,{3;11;22},1,0)*VLOOKUP(A4,{5;10;13},1,0)),A1,"")

  5. #5
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    91

    Re: list values based on other cells

    Thank you so much for your time and quick reply. very nice of you.
    i tried but dose not give me all values. here is a screenshot.:
    screenshot.6802.jpg
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    91

    Re: list values based on other cells

    Quote Originally Posted by josephteh View Post
    Amended formula:=IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)*VLOOKUP(A3,{3;11;22},1,0)*VLOOKUP(A4,{5;10;13},1,0)),A1,"")
    Thank you, this gives me result for A1:J1
    IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)),A1,"")
    but when combine, I get nothing back with this formula:
    =IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0)*VLOOKUP(A3,{3;11;22},1,0)*VLOOKUP(A4,{5;10;13},1,0)),A1,"")
    and

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: list values based on other cells

    there is 1, 7, 9 in A2-J2
    And
    there is 3, 11, 22 in A3-J3
    And
    there is 5, 10,13 in A4:J4


    AND mean all conditions must be All True.


    if only one condition need it should be

    there is 1, 7, 9 in A2-J2
    Or
    there is 3, 11, 22 in A3-J3
    Or
    there is 5, 10,13 in A4:J4


    =IF(COUNT(MATCH(A2,{1,7,9},),MATCH(A3,{3,11,22},),MATCH(A4,{5,10,13},)),A1,"")
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    91

    Re: list values based on other cells

    Quote Originally Posted by Bo_Ry View Post
    there is 1, 7, 9 in A2-J2
    And
    there is 3, 11, 22 in A3-J3
    And
    there is 5, 10,13 in A4:J4


    AND mean all conditions must be All True.


    if only one condition need it should be

    there is 1, 7, 9 in A2-J2
    Or
    there is 3, 11, 22 in A3-J3
    Or
    there is 5, 10,13 in A4:J4


    =IF(COUNT(MATCH(A2,{1,7,9},),MATCH(A3,{3,11,22},),MATCH(A4,{5,10,13},)),A1,"")
    Many thanks,,,,Very nice of you

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,042

    Re: list values based on other cells

    Amended formula for OR condition: =IF(ISNUMBER(VLOOKUP(A2,{1;7;9},1,0))+ISNUMBER(VLOOKUP(A3,{3;11;22},1,0))+ISNUMBER(VLOOKUP(A4,{5;10;13},1,0)),A1,"")

+ 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: 3
    Last Post: 06-15-2020, 05:50 PM
  2. Replies: 2
    Last Post: 02-22-2015, 11:40 AM
  3. Replies: 3
    Last Post: 04-22-2014, 03:30 PM
  4. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  5. [SOLVED] Taking a list of tasks and a list of subtasks and creating a new list with groupings
    By kknb0800 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2012, 12:16 PM
  6. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  7. list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Ed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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