+ Reply to Thread
Results 1 to 5 of 5

Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

    I'm working on a macro, and having a little trouble with my formula. In a nutshell, I have a long list of Budget Analysts in a Column named "BA" on one sheet. On the other I want to place this formula to get a unique list of those BAs, minus any "NA's" in the column. My formula is this:
    Please Login or Register  to view this content.
    Below is my in-progress macro. My issue is that if I use the VB editor to record my formula, it records as "Formula2R1C1", but then when I revamp it for my macro I can't put it in using either of the R1C1 formula strings, but instead have to do it as "Formula =", as shown in my macro below. The problem with that is it puts the @ symbol in front of my formula, which I then have to remove.

    Please Login or Register  to view this content.
    I'm sure it's a simple problem I'm overlooking, so I'd appreciate a good second pair of eyes to look at my code. I've attached a workbook so you can see what I'm working with. BTW, all of my invoices will have a BA column, but it moves around in the sheet, so I have to use FIND to be flexible.
    Attached Files Attached Files
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

    Shouldn't you be using Formula2 not Formula?
    Rory

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

    well, by the evidence of "it works", I'd say yes, but that leads me to "what's the diff between between Formula and Formula2, and why don't the R1C1's work for this?"

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

    It's a dynamic (spilling) formula, not a regular one, so you need Formula2. Your formula string isn't in R1C1 format so I don't know why you want to use the R1C1 properties.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Placing UNIQUE formula in a cell; FORMULA, FORUMULAR1C1,FORMULA2R1C1

    So then Formula2 is for the new spill formulas? I didn't know that.

    This is the first time I've seen Formula2, AND the first time I had a formula that didn't use the R1C1 format, so I got hit by two surprises at once. Thanks for bringing clarity.

+ 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] Trouble placing a formula into a cell.
    By sdingman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2017, 06:29 PM
  2. Need help placing variables in formula
    By excelforumcrisis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2014, 05:42 PM
  3. [SOLVED] Placing a Variable in A Formula
    By sdeaks in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-06-2014, 04:14 PM
  4. [SOLVED] placing a formula in a cell to monitor values of another cell
    By Tritekfire in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2013, 11:50 AM
  5. placing " as text in a cell controlled by a formula
    By clarkjohnson in forum Excel General
    Replies: 3
    Last Post: 01-10-2012, 08:05 AM
  6. Placing a vlookup formula within a cell in VBA
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 11:59 AM
  7. Placing a formula in a cell from VB
    By Paul Edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2008, 12:43 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