+ Reply to Thread
Results 1 to 2 of 2

if condition is true then copy the formula in the other cell

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Question if condition is true then copy the formula in the other cell

    hi every body

    I have a sheet which contains some data from A to D columns and from 1 to 20 in the rows
    now I want like this prosedure for my data by VB or Macro :

    for example :

    1. if in the B10 my condtition is true
    2. in the corresponding row (cell "D10 ")copy a special formula
    3. if it is false show "-" in the same cell
    4. and repeat this procedure for all of my data (A1:D20)

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: if condition is true then copy the formula in the other cell

    You probably dont need VBA for this...

    How about in column D
    =if(B10=TRUE,special formula,"-")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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