+ Reply to Thread
Results 1 to 11 of 11

Moving from verticle to Horizonatal, but still matching the verticle data

  1. #1
    Registered User
    Join Date
    09-19-2017
    Location
    LONDON
    MS-Off Ver
    OFFICE 2013
    Posts
    4

    Moving from verticle to Horizonatal, but still matching the verticle data

    Newbie looking for some help on this one...
    I have a sheet of data with account numbers matching customer numbers all running vertically, I need it to be displayed horizontally...
    examples below

    example.jpg

    Any ideas?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    How many Account numbers can a customer have?

    Would it not make more sense to have the customer reference first?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    No reply as yet. This solution allows a single customer, in effect, any number of account Nos.


    Ordinary formula to return list of customer refs.
    =IFERROR(INDEX($B$2:$B$7,MATCH(0,INDEX(COUNTIF($F$1:$F1,$B$2:$B$7),0),0)),"")

    Array formula, copied across and down to return accoutn numbers:
    =IFERROR(INDEX($A:$A,SMALL(IF($B$2:$B$7=$F2,ROW($B$2:$B$7)),COLUMNS($G:G))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-19-2017
    Location
    LONDON
    MS-Off Ver
    OFFICE 2013
    Posts
    4

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    thanks for your reply, a customer can have 4/5 account numbers.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    Fair enough. The formula/set up that I used should do the job for you, doesn't it??




    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  6. #6
    Registered User
    Join Date
    09-19-2017
    Location
    LONDON
    MS-Off Ver
    OFFICE 2013
    Posts
    4

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    doesn't seem to want to do it?
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    Im away for a while. Did you read the bit about array formulas?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    First of all, in your screenshot (remember: don't post screenshots - we're lazy and don't really want to retype all you stuff), customer ref was column C, not column A.

    Secondly, formulae to return unique values are a bit slow. Very slow actually. And with 2000+ rows to look at... you could grow old watching the circling donut of despair....
    So, I used a bit of VBA to return the uniques...


    See sheet. happy to explain anything.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-19-2017
    Location
    LONDON
    MS-Off Ver
    OFFICE 2013
    Posts
    4

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    Hero, thanks buddy!
    did you do it as a macro?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    Im away for a while... on the road. Look back in about 3 hours.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Moving from verticle to Horizonatal, but still matching the verticle data

    Please Login or Register  to view this content.
    A very tiny piece of code to return the duplicates...

    and then an array formula to return the account numbers, in F2, copied across and then down:

    =IF($E2="","",IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$3000=$E2,ROW($A$2:$A$3000)),COLUMNS($F:F))),""))


    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

+ 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. Two verticle axes
    By scottintexas in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-25-2016, 10:18 AM
  2. [SOLVED] Verticle Line Charts
    By bluerog in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-12-2014, 03:53 PM
  3. Reproduce verticle data as horizontal data
    By SIMONKENT in forum Excel General
    Replies: 1
    Last Post: 01-29-2014, 07:44 AM
  4. Verticle to Horizontal
    By Figboot in forum Excel General
    Replies: 2
    Last Post: 05-17-2011, 12:31 PM
  5. Replies: 5
    Last Post: 03-19-2006, 02:26 PM
  6. [SOLVED] scroll back to verticle?
    By sclem9801 in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 01:15 PM
  7. Multiplying a row with the verticle sum of other rows
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2005, 02:05 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