+ Reply to Thread
Results 1 to 4 of 4

R1C1 Calculation - Syntax Help Required

  1. #1
    Registered User
    Join Date
    08-16-2018
    Location
    Glasgow, Scotland
    MS-Off Ver
    Office 365
    Posts
    6

    Question R1C1 Calculation - Syntax Help Required

    Hi,

    This is my first post so be gentle with me!

    What I'm trying to do is to perform a calculation in all populated cells in column AS.

    I want to check cell AD for a value of 27. If is exists I then want to use the minimum value found in either cell I or U then multiply it by the value in cell AC as a percentage.

    I'm using the code below but there's an error somewhere - if I type in the formula =IF(AD2=27,(MIN(I2,U2))*AC2%,"") it works. Any idea where I'm going wrong?

    Range("AS2").Select
    Range("AS2:AS" & lastrow).FormulaR1C1 = "=IF(RC[-15]=27,MIN(RC[-36],RC[-24])*RC[-16]%,””)

    Thanks!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: R1C1 Calculation - Syntax Help Required

    Please Login or Register  to view this content.
    Something like above. Your double quote usage is off.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    08-16-2018
    Location
    Glasgow, Scotland
    MS-Off Ver
    Office 365
    Posts
    6

    Thumbs up Re: R1C1 Calculation - Syntax Help Required

    CK76 - worked a treat!

    Thank you so much

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: R1C1 Calculation - Syntax Help Required

    You are welcome

    If your question is resolved, please mark the thread as solved by using Thread tools found at top of your initial post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Insert value in a cell using R1C1 formula in VBA syntax help
    By pongmeister in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-28-2017, 04:55 PM
  2. Proper syntax for R1C1 formula in VBA
    By hbs1558 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2015, 08:40 AM
  3. R1C1 syntax
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 06-28-2014, 03:01 PM
  4. [SOLVED] R1C1 Syntax issue
    By jsuarez199 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2013, 08:44 AM
  5. Updating formulas using R1C1 syntax
    By lfeder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2013, 04:06 PM
  6. Syntax to add a variable for Row Number in R1C1 format
    By Jon.R in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2011, 10:29 AM
  7. Help with Syntax Using R1C1 in VBA
    By nofzinger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2010, 11:38 AM

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