+ Reply to Thread
Results 1 to 13 of 13

Collecting Cell Values

  1. #1
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Collecting Cell Values

    Hello there,

    I have several sheets which give me results, e.g. "dummy1", "dummy3" and "dummy5" out of a list of all possible dummies 1 to 10. It is possible that there are any number of "dummy5" (or any other dummy) outcomes.
    I just want Excel to make a list of all the possible outcomes.
    In this case, I want Excel to make a List that says:
    "dummy1"
    "dummy3"
    "dummy5"
    This means Excel shall search the respective Columns and just check, is this dummy there or is it not.

    Does anyone know how to do this?
    Last edited by Cunner; 12-16-2009 at 01:42 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Tach!

    do you want to summarize and list the result of the same cell on several sheets? Or do you want Excel to calculate what the possible outcome is?

    Maybe you could upload a workbook with a few sample sheets and illustrate what you want to achieve.

    erwartungsvoll

  3. #3
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    Moin auch.

    So I attach an example worksheet. The outcome there should be a list that looks like follows (whereas the order doesn't relly matter):

    Mueller
    Meier
    Schmitz

    How can I do it? I don't want Mueller to appear twice and I don't want empty cells in between the lines.

    Thanks a lot in advance.
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Perhaps like this:

    in G4 and copy down

    =IF(AND(F4="BUDGET",ISNA(MATCH(C4,$G$3:G3,0))),C4,"")

    Mind the $ signs. The first part of $G$3:G3 must have them, the second part of $G$3:G3 should not have them!

    Now you can use autofilter to sort by that column to get them all in a sequence without blank cells in between.

    Hoffentlich klappt's

    cheers

  5. #5
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    Thanks a lot for this.
    The problem is just, that the data comes from two different worksheets, so there could still be double entries. Moreover, I would like to have the list just as an output, w/o the manual sorting.

    I basically think it could be something like:
    look for the first not-empty cell, that is not already in the List. Take it and enter it into the list. Do this to the end of the list.

    But I have no idea if/how that works. Even though this seems to be like a very simple procedure, that every child could do .

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Hang on,

    the sample you provided had just one worksheet. You may want to provide a sample that shows your complete data layout and specify where you'd like the output to appear.

    We can take it from there.

  7. #7
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    Thanks again,

    after having thought of the whole thing tonight, I managed to integrate the two worksheets into one worksheet and also let the check run both in the same sheet.
    Now I have this list of "Names", thanks to you, every name is just appearing once. All I need now is a function that looks up all the the names and puts them in a list automatically w/o manually sorting the list or something.
    I think I can do that with a macro, but it would be better if there were none in the file.

    Thanks in advance for any hints.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Check out the attachment.

    Never mind column G, keep your original formula in there.

    Column I now has the unique list. A helper column J produces a number when the cell in column I is not empty. Finally, the formula

    =IF(ROW(A4)-ROW(A$4)+1>COUNT(J$4:J$13),"",INDEX(I:I,SMALL(J$4:J$13,1+ROW(A4)-ROW(A$4))))

    pulls all names into one list, without blanks.

    This approach works well if the list is not too large. You can of course hide columns I and J if you want.

    If this does not work for you, we'd need to look at array formulae, with the drawbacks they include.

    Viel Spass!
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    This is awesome.
    I have not really an idea, what the formula does, but it works perfectly. I did a macro, that does the same, but it is a macro after all and it takes a further click, so the formula is just great.

    I have one (hopefully final) question:
    Now I want to mark all the Cells that include Names that are on this newly created list in red. Right now I use conditional formatting and say "Formula Is" and =match("Name","Column in which all the names are")
    This works in so far as it marks all the cells that are filled with something in red. Any ideas.

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Formula is like this?

    =MATCH(C4,$K$4:$K$6,0)

    applied to column C will do that, because all the names in column C are in the list. Try to replace one of the Meiers with Schulze and don't give him a budget. You'll see he won't light up

    hth

  11. #11
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    Yes, I saw that all the names are in the list. As I am working with another list, this wasn't relevant though.

    The point is, that I didn't enter the "0" in the end of the formula, now it works.
    Thank you very much for your support. It is awesome to have people who devote their free time to supporting others like that.

  12. #12
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Collecting Cell Values

    Sorry, I am back again. Can I also have conditional formatting for an array that is not only a column but a wider area? I would like to enter previous months data there.
    Thanks again.

  13. #13
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Collecting Cell Values

    Maybe time to mark this thread solved and start a new one. I'll be watching out for you, but there's lots of other brilliant advisors here.

    Tschüß

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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