+ Reply to Thread
Results 1 to 4 of 4

Formula to return the column number when a value changes from a reference

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    San Marino
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula to return the column number when a value changes from a reference

    HI,

    Please help me find a way to solve this:


    1,01 1,01 1,01 1,05 1,07

    In the example above I want excel to return the column number of the first time that the value changed from reference to the first value. The result should be 4.

    Can anyone help?
    Last edited by xico; 07-19-2012 at 11:40 AM. Reason: Problem Solved

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Formula to return the column number when a value changes from a reference

    try array formula like this (confirmed CTRL + SHIFT + ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Formula to return the column number when a value changes from a reference

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirmed with Ctrl+Shift+Enter.

    It works irregardless of the values in the array.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    07-19-2012
    Location
    San Marino
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula to return the column number when a value changes from a reference

    Thank you both! Excellent answers!
    Saved my day!

+ 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