+ Reply to Thread
Results 1 to 4 of 4

Remove blank or zeros when transposing data

  1. #1
    Registered User
    Join Date
    10-24-2005
    MS-Off Ver
    2003
    Posts
    10

    Remove blank or zeros when transposing data

    Hi

    I have an address field of 5 columns in one worksheet that I am attempting to transpose into another sheet so that the address reads as normal ( in rows rather than columns). I have used VLOOKUP to transpose the data.

    The problem is that not always are all 5 data columns used and so I end up with blank cells in the transposed data like this:

    Original Data Sheet:
    A B _ _ E

    Transposed Address:
    A
    B
    _
    _

    E



    Is there a way (without VB) to ignore the blank cells during the vlookup so I end up with ABE in the example above? I was thinking IF AND VLOOKUP ISBLANK something but cannot get my poor head around it

    Thanks
    Mat

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove blank or zeros when transposing data

    try copy paste special values then filter on blanks then delete blank rows
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-24-2005
    MS-Off Ver
    2003
    Posts
    10

    Re: Remove blank or zeros when transposing data

    Quote Originally Posted by martindwilson View Post
    try copy paste special values then filter on blanks then delete blank rows
    Thanks Martin.

    I need it updated automatically though so don't want to go for a copy/paste operation - it needs to be a formula ideally or VB if I cannot do the formula.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove blank or zeros when transposing data

    by the time someone works that out you could have done it lol

+ 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