+ Reply to Thread
Results 1 to 2 of 2

Change the cell number based on a value in different cell

  1. #1
    Registered User
    Join Date
    01-08-2019
    Location
    Prague
    MS-Off Ver
    2018
    Posts
    7

    Change the cell number based on a value in different cell

    Hi,

    quick question here. Is it possible to change a cell number in a formula based on a value in different cell?
    For example I have this formula:
    Please Login or Register  to view this content.
    I would like to replace the "D" with a different cell number in which would be a text value that defines the cell number in the first formula.
    Something like this
    Please Login or Register  to view this content.
    and in the A1 cell would be text value "D". I know it isn't working but is there a way to achieve it?

    Thank you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Change the cell number based on a value in different cell

    You can use the INDIRECT function for this:

    https://support.microsoft.com/en-us/...1-92b6306fa261
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Change Sheet Number Based on Cell Value Rounded Down
    By Dagoom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2015, 10:10 AM
  2. Change Cell color based on row number
    By tuckerbunch in forum Excel General
    Replies: 4
    Last Post: 02-04-2013, 10:58 AM
  3. Change alignment based on if cell is text or number.
    By Owompa in forum Excel General
    Replies: 4
    Last Post: 07-21-2011, 03:54 PM
  4. Change cell's number format based on another cell's value
    By Sharpshooter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2010, 05:06 AM
  5. How to change cell values based on a set number
    By rbpd5015 in forum Excel General
    Replies: 5
    Last Post: 04-07-2010, 07:15 PM
  6. change number format based on another cell?
    By Fidd$ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-18-2009, 10:02 AM
  7. Replies: 1
    Last Post: 09-06-2005, 10:05 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