+ Reply to Thread
Results 1 to 5 of 5

How to find nth column

  1. #1
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    How to find nth column

    In my VBA code I want to find out nth column from the column I am am currently working on.

    Let us say my source data is in Column 'P'. Based on this I want to read data from say next column (+1) or from 3rd column (+3).
    Issue is how do I get the reference of the next column or third column from column 'P'. The reference has to be alphabetic i.e. column 'Q' or 'S' and not numeric.
    Learning is enjoyable. Enjoying learning.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,591

    Re: How to find nth column

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,591

    Re: How to find nth column

    I have to ask ... why do you "need" the column letter as opposed to the column number?

  4. #4
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: How to find nth column

    Quote Originally Posted by TMS View Post
    I have to ask ... why do you "need" the column letter as opposed to the column number?
    Will Columns() and Range() work with column numbers? If so can you show me the syntax?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,591

    Re: How to find nth column

    Seeing as I have no idea what it is you are trying to achieve, here are some examples:

    Please Login or Register  to view this content.

    Regards, TMS

+ 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: 3
    Last Post: 11-25-2014, 06:08 AM
  2. Replies: 3
    Last Post: 05-28-2014, 12:01 PM
  3. Replies: 2
    Last Post: 04-26-2013, 01:16 PM
  4. Find X in Column A, Find Y in Column B and Return Z in Column C
    By pizzalover in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 04:15 PM
  5. [SOLVED] Error when using FIND Method to find last row when column is blank
    By the duke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2013, 10:26 PM
  6. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 AM
  7. find something in Column A, and find whats next to it in Column B
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2007, 09:02 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