+ Reply to Thread
Results 1 to 4 of 4

Formula to get Column # based on value in cell

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to get Column # based on value in cell

    Hello:

    I have cell Cell P1 = 1

    I need formula in cell Q1 to give column # based on value in cell P1 as follows.

    If P1 = 1 then Column will be "O"
    If P1 = 2 then Column will be "S"
    If P1 = 1 then Column will be "W"
    If P1 = 1 then Column will be "AA"

    and so on....every 4th column

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to get Column # based on value in cell

    Hi,

    One way

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,622

    Re: Formula to get Column # based on value in cell

    Hm, may be I understand it a bit different way, because Richard's approach will lead to the same as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    May be the answer is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or may be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to get Column # based on value in cell

    Hello Richard and Kaper:

    Thanks a lot, both solution works

    Riz

+ 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: 2
    Last Post: 12-20-2019, 11:56 AM
  2. Formula to look in filecell based on cell value in next column?
    By whahmira in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2018, 11:52 AM
  3. [SOLVED] Chage column letter in the formula based on cell value.
    By JuauM in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-12-2015, 10:48 AM
  4. [SOLVED] Formula to get a cell value based on row and column
    By plans in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-05-2015, 06:10 PM
  5. [SOLVED] Need a formula to change cell in column 2 based off of text in column 1
    By bevwalker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2014, 03:26 PM
  6. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 AM
  7. INDEX formula to define column based on cell value
    By boohah in forum Excel General
    Replies: 2
    Last Post: 02-02-2011, 05:26 AM

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