+ Reply to Thread
Results 1 to 5 of 5

Assign value to another cell?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-24-2007
    Posts
    18

    Assign value to another cell?

    Can you assign a value to another cell?

    Example

    Cell A1 content needs to set a value in Cell A2.

    Cell A1 contains the formula: =If(condition, A2=1, A2=2)

    I realize you can not put A2=1 in the value_if_true location but I'd like to cause cell A2 to get the value of 1 somehow when the condition is true.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi dg,

    I think what you're asking is "based on a condition in cell A1, fill in a certain value in cell A2". Is that right?

    If so, then put this formula in cell A2:

    =IF(condition, 1, 2)

    where condition could be just about anything. For example,

    =IF(A1="Service", 1, 2)

    Would put the number 1 in cell A2 if the word "Service" appeared in cell A1, and if not it would put the number 2.

  3. #3
    Registered User
    Join Date
    02-24-2007
    Posts
    18
    Paul,
    I really want to know if there is a way to cause a value to be set in another cell from a different cell location.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Not through formulas there isn't. A formula "gets" a value from another cell, it cannot put a value into another cell.

    Using VBA code you can type values in one set of cells and have other cells update based on those changes, though.

  5. #5
    Registered User
    Join Date
    02-24-2007
    Posts
    18
    Thanks Paul.

+ 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