+ Reply to Thread
Results 1 to 4 of 4

If statement

  1. #1
    Registered User
    Join Date
    11-13-2007
    Posts
    3

    If statement

    Cell A1 determines the value in cell A2; if A1 = 1, A2 = 10; if A1 = 2, A2 = 100

    I want cell B1 to equal A2 as if A1 = 1, regardless of what A1 actually equals. So for instance, if A1 = 2, I want B1 to equal what A2 would equal if A1 = 1; in this case, B1 should equal 10, even though A2 = 100. In essence, I am trying to run the spreadsheet within the cell independently.

    How do I write a function within B1 to acheive this, preferably without VBA?

    Thanks so much.

  2. #2
    Registered User
    Join Date
    11-13-2007
    Posts
    3

    also

    the actual problem i am having is far more complex; I have simplified the situation, so the solution I am looking for is independent of the values I have chosen for these cells.

    This is probably obvious, but just thought I would clarify just in case.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi
    could you paste an example of what you want to achieve and of your data.

    Thx

  4. #4
    Registered User
    Join Date
    11-13-2007
    Posts
    3

    exactly what i'm trying to do

    Starting with:
    A1 = 2
    A2 = IF(A1=1, 10, 100)

    What I want:
    B2 = whatever A2 would equal if A1 = 1
    in this case, B2 = 10

+ 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