+ Reply to Thread
Results 1 to 2 of 2

Formula which returns result in two seperate cells

  1. #1
    Registered User
    Join Date
    09-27-2011
    Location
    glasgow, scotland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Formula which returns result in two seperate cells

    hi, I need a formula which returns a result in two seperate cells.


    The concept is this -
    If A1 has a "2" then A2 AND A3 should be populated with a "2", if A1 doesn't have a 2 then A2 and A3 should be blank. The formula MUST be in cell A2 (for complex reasons I can't go in to).

    The closest I could come up with is this -
    =IF(A1=2,A2=2 & A3=2,"")

    I can make the formula work for just A2 with this -
    =IF(A1=2,2,"")

    but this doesn't take care of cell A3.

    Any help would be appreciated.
    Thanks
    Last edited by ogreville; 09-27-2011 at 03:36 PM. Reason: missing info

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Formula which returns result in two seperate cells

    You'll need two formulas - one in cell A2 and one in cell A3. You can change the state of a cell with a formula in a different cell. You can with VBA, if you need another option.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ 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