+ Reply to Thread
Results 1 to 7 of 7

Finding a number or text in an unsorted list and showing it as "Done" next to another list

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Finding a number or text in an unsorted list and showing it as "Done" next to another list

    Hello and thanks for looking at my problem.

    For some reason I cannot attach a file so I'll try to write it out and hope it makes sence.

    Ok so here is the unsorted list (in a column) these are entered in the order they are done. Each number will only appear once as they are selected from a drop down list.
    .......A
    1 170115
    2 170116
    3 170117
    4 170107
    5 170108
    6 170103
    7 170104
    8 170105
    9 170101
    10 170110
    11 170111
    12 170112
    13 170113
    14 170102
    15
    16
    17
    19
    20


    In another column list, lists all the number that need to be done. I would like the word Done in green or green background to appear in the adjacent cell when it is found in the first list and not until.
    ........G.......H
    1 170101 DONE
    2 170102
    3 170103
    4 170104
    5 170105
    6 170106
    7 170107
    8 170108
    9 170109
    10 170110
    11 170111
    12 170112
    13 170113
    14 170114
    15 170115
    16 170116
    17 170117
    18 170118
    19 170119
    20 170120


    The conditional formatting I think I am ok with.
    It is the IF statement I am struggling with. I have tried this by naming the first list as a range "list1" and also just by selecting the range A1:A20

    These are what I have tried and do not work.

    =IF(list1=G1,"Done","") Here I get the blank, the number 170101 is in the list and its refering to cell G1 which is in this case 170101 but its not finding it.
    =IF(list1=170101,"Done","") Same as above but I specified the number.
    =IF(A1:A20=170101,"Done","") Here I get the blank, the number is in the list but its not finding it and I specified the number 170101 I wanted it to find.
    =IF(A1:A20="170101","Done","") Same as above with quotes around the number.

    I probably need a different function I've not used before and don't know exists but I cannot seem to find a function that I need.

    Please help.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another

    You can use
    =IF(COUNTIF(G1, A1:A20)=0)
    as a Conditional Format function to colour the number cell directly, or
    =IF(COUNTIF(G1, A1:A20)=0,"","Done") in the next column add to the text to the column and CF that depending on the text in the cell.

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another

    Dear cytop,

    Many thanks, I got there in the end by using in cell H4 =IF(COUNTIF( $A$1:$A$20,G4)=0,"","Done") then conditionally formatting the cell G4 with =H4="Done"

    It was the COUNTIF function I hadn't used before so thanks for the heads up with that.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another

    Apologies for transposing the parameters... Typed freehand on a Tablet and no Excel.

  5. #5
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another

    Haha, no problem, at least you got me pointed in the right direction.

    Do you know of a list of functions that gives better detail of what those functions can do?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another

    Quote Originally Posted by Ginge1267 View Post
    Haha, no problem, at least you got me pointed in the right direction.

    Do you know of a list of functions that gives better detail of what those functions can do?
    Ahhh Ginge1267 ... "IFONLY"! lol I've tried and I can't find one.

    The breadth of the answer(s) is enormous just concerning COUNTIF alone.

    The best I can offer is what I suppose the bulk of forum contributors do.
    • come back to the forum(s) often and read some threads to learn
    • come to understand the solutions offered ... there will be many applications of this and other functions you won't find in the help documentation.
    • many of those are quite creative.
    • attempt a solution yourself ... self education is the best education.
    • play with the functions ... mock up problems ... play 'what-if'
    • you don't have to post your solutions ... but ... one of the most effective ways to learn and get inspiration on a subject is to teach it.
    • We get what we give.
    • Start simple though.
    I hope this has helped.
    Regards,
    Dave
    Last edited by FlameRetired; 01-30-2017 at 03:38 PM.
    Dave

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Finding a number or text in an unsorted list and showing it as "Done" next to another


+ 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: 1
    Last Post: 03-13-2016, 10:29 PM
  2. [SOLVED] Convert Long Part Number List to "Text" Format??
    By TestMailinator in forum Excel General
    Replies: 2
    Last Post: 04-20-2015, 11:01 AM
  3. Replies: 0
    Last Post: 03-21-2014, 09:58 AM
  4. Replies: 0
    Last Post: 01-29-2014, 02:58 PM
  5. Row number of Combobox list "list taken form worksheet"
    By raj10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2013, 09:02 PM
  6. Replies: 8
    Last Post: 03-07-2011, 01:43 PM

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