+ Reply to Thread
Results 1 to 4 of 4

Formula not being row specific

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    66

    Formula not being row specific

    Hi, If I want to paste a formula into a sheet using a macro, how can I go about this if the row number is not specific.

    For instance, If I was selecting cell A5 I want the formula to be =if(d"the row number here">10,”yes”,”no”).

    But how do I do this to cover a range of rows? I would firstly select the row, so for instance row 5 column A – and then run this macro to apply to the values in D5.

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula not being row specific

    Not sure about your macro but the formula would be something like:

    =if(INDIRECT("d"&ROW())>10,”yes”,”no”)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-21-2009
    Location
    Nottingham
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Formula not being row specific

    The sheet is very changable, hence why I need it to allow the user to enter the formula on certain rows by clickig a button (using a macro).

    I just need the formula to paste into A1, 2, 3, 4 etc on users choice - but the formula needs to be specific to that row.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula not being row specific

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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