Results 1 to 11 of 11

Thread: Where and how to enter an Excel formula

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,476
    Location
    While it may not aid understanding so much, the simplest way to deal with complex formula is to remove the inital "=" sign and then record a macro inserting it. In this case I get
     
    Sub Macro1()
        ' Macro1 Macro
        ActiveCell.FormulaR1C1 = _
        "=IF(R[5]C[-3]<>"""",""Returned"",IF(AND(TODAY()>=R[5]C[-5]+8,R[5]C[-3]=""""),""Require Chasing"",""No Action Required""))"
        Range("H10").Select
    End Sub
    You can then see how the references etc. are created, and modify them to suit.
    Last edited by Aussiebear; 12-18-2024 at 04:06 AM.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •