+ Reply to Thread
Results 1 to 17 of 17

Return multiple Occurrences on same row

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Return multiple Occurrences on same row

    Hi,

    My question is presented, in details, inside the WB.

    Thanks, Elm
    Attached Files Attached Files
    Last edited by ElmerS; 12-18-2008 at 02:11 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    To do it without helper columns is quite cumbersome... what you can do is just the font in the helper columns to match the background so essentially they become invisible...

    Having said that... in D9 enter:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down.

    in E9 enter:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down

    in C9, then enter:

    Please Login or Register  to view this content.
    copied down.

    Hide D9:E15 by changing font to match background.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251
    Amazing, i did it!

    See attached file.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    NBVC:

    Thank you. That works fine.
    I assume there is no way to insert the first formula into the second in order to avoid the helper columns - or... !?

    Steve:
    Thank you too, but:
    1) when I tried to produce (by copying your formula into another range of cells I got an #VALUE! error.
    2) There is no comma between the digits.
    Instead of 2,7 there is 2.7 and instead of 5,0 it returns only 5.
    (I know I can alter the decimal digits but I need a comma - as string - and NOT a thousand separator used in some countries).

    Elm.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by ElmerS View Post
    NBVC:

    Thank you. That works fine.
    I assume there is no way to insert the first formula into the second in order to avoid the helper columns - or... !?


    Elm.
    Not really... because the second formula depends on the result of the first for counting and determining what Small() function k factor to use...and so I would get circular references...

  6. #6
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251
    Quote Originally Posted by ElmerS View Post

    Steve:
    Thank you too, but:
    1) when I tried to produce (by copying your formula into another range of cells I got an #VALUE! error.
    2) There is no comma between the digits.
    Instead of 2,7 there is 2.7 and instead of 5,0 it returns only 5.
    (I know I can alter the decimal digits but I need a comma - as string - and NOT a thousand separator used in some countries).

    Elm.
    1. You need to press Ctrl + Shift + Enter
    More info about array formulas
    2. I converted the result to string values. The values use commas but i think it has to do with my country settings?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    Hi, Steve

    For answer 1: that much I know (Ctrl+Shift+Enter).

    2) I tried to copy your formula (from the Formula Bar ! ) and pasted it into 2 columns but Nothing happened.

    Pls look at col. M & N.

    If I understood your formula, (and I didn't examined it to the end), - it can be typed in any Column - not only in col. B, as you did.

    What did I do wrong ? Where is my mistake ?

    Thanks for your time, Elm
    Attached Files Attached Files
    Last edited by ElmerS; 12-18-2008 at 07:54 AM.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Okay,

    I got it to work without helper columns...

    try this formula in C9, confirmed with CTRL+SHIFT+eNTEr and copied down

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    Thanks again, but I must have done something wrong, again, because I don't get the requested results.

    Pls take a look at the attached WB.
    Attached Files Attached Files

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    No, it was me who goofed.. I was checking the results against the wrong thing....

    ...back to square one... using helper columns for now... I will try to work on it when I get enough time to dedicate to it.

  11. #11
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    Never mind, thanks anyway.

    Take your time - I'll stick around...

    PS:
    I marked this thread as SOLVED but ,with your permission, I still look forward for a solution without an helper column.
    Last edited by ElmerS; 12-18-2008 at 02:12 PM.

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Although, I am not sure why the changing the font colour in the helper columns won't work for you... ?

  13. #13
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    I didn't said that.

    The Question, as mentioned before, is solved.

    I always like to prevent from using Helper Columns - if applicable - and it has nothing to do with hiding and/or "white coloring" its font.

    Thanks.

  14. #14
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251
    Quote Originally Posted by ElmerS View Post
    Hi, Steve

    For answer 1: that much I know (Ctrl+Shift+Enter).

    2) I tried to copy your formula (from the Formula Bar ! ) and pasted it into 2 columns but Nothing happened.

    Pls look at col. M & N.

    If I understood your formula, (and I didn't examined it to the end), - it can be typed in any Column - not only in col. B, as you did.

    What did I do wrong ? Where is my mistake ?

    Thanks for your time, Elm
    This is what i see when i open your file "Return multiple Occurrences on same row1.xls"

    See the attached gif file. It looks like the copied formula in col. M & N is working?
    Attached Images Attached Images
    Last edited by Steve R; 12-18-2008 at 02:45 PM.

  15. #15
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Find grid location of TRUE values


    Using your posted workbook
    For a "no helper column approach"....try this ARRAY FORMULA,
    committed with CTRL+SHIFT+ENTER (instead of just ENTER):
    Please Login or Register  to view this content.
    Copy that formula into C10:C15

    Edited to include this simpler version:

    Please Login or Register  to view this content.
    These are the results:
    Please Login or Register  to view this content.

    Is that something you can work with?
    (Looks like SteveR and I converged on the same approach.)
    Last edited by Ron Coderre; 12-18-2008 at 03:04 PM. Reason: add a simpler formula
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  16. #16
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Well, there you go!

  17. #17
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412
    Yep, Ron, this must be the ultimate and shortest solution.

    Steve,
    Thanks for your efforts but could it be working for you because you are on "Excel 2007" !?
    If it does - then it must be sort of a "bug" because the functions you use are well known from previous versions...

    NBVC,
    Thanks.
    I still wonder about Steves formula not working as predicted on "Excel 2003".

    I hope someone will check this out on another "2003" version.
    What I mean by that is - copying Steves formula from the Formula bar and pasting it onto another column.

    Elm.
    Last edited by ElmerS; 12-18-2008 at 04:14 PM.

+ 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