+ Reply to Thread
Results 1 to 4 of 4

Displaying column number of 1st, 2nd .... n number of non zero cell

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Displaying column number of 1st, 2nd .... n number of non zero cell

    Hi all,

    I want to create an algorithm that gives the column number of the first, second, third etc. non-zero value of a row of data.

    These column numbers should then be displayed in a horizontal fashion.

    Can anybody please help?

    Cheers!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Displaying column number of 1st, 2nd .... n number of non zero cell

    Do you have a sample file with an expected output tab that you could upload? It will help us to understand your requirement better.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Displaying column number of 1st, 2nd .... n number of non zero cell

    Here is the sample file. I created a little example of how the output should look like.

    Cheers and thanks already!
    Attached Files Attached Files

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Displaying column number of 1st, 2nd .... n number of non zero cell

    an array formula
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Displaying column number of 1st, 2nd .... n number of non zero cell

    Thank you so much!!!!!

    It works perfect!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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