+ Reply to Thread
Results 1 to 3 of 3

Excel VBA enter Formula in cell

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    Wales, UK
    MS-Off Ver
    365
    Posts
    66

    Excel VBA enter Formula in cell

    Good day, I have a simple piece of code which should be able to fix, I'm just not sure how. Below is the code:

    Please Login or Register  to view this content.
    With the rowCounter it doesn't count to the end (I use it many times before in the code and it works perfectly), it gives the code a row number of "0". Like the following:

    =COUNTIFS(Summary!$D$52:R0C4,"=Corporate",Summary!$J$52:R0C10,"=4")
    Last edited by Simone Fick; 08-28-2017 at 05:21 AM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Excel VBA enter Formula in cell

    maybe a sample workbook to show how you came to get "0" as i cannot replicate your situation

    i can understand if the formula output produces 0 but cant see how you could possibly get 0 from rowcounter
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-15-2014
    Location
    Wales, UK
    MS-Off Ver
    365
    Posts
    66

    Re: Excel VBA enter Formula in cell

    I had rowcounter= o earlier in the code which I needed but took it out for this part, thank you. Seems like it sorted the problem.

+ 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] If cell meets date requirement enter 1, if not enter 0, if blank don't enter anything.
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2017, 02:04 PM
  2. Replies: 1
    Last Post: 01-03-2017, 09:30 PM
  3. [SOLVED] Using vba to enter formula in a cell to Excel
    By Oddjob63 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2016, 10:10 AM
  4. Replies: 1
    Last Post: 03-25-2016, 01:31 AM
  5. Replies: 1
    Last Post: 03-25-2016, 01:16 AM
  6. how do i enter a formula in excel that will change a cell value
    By Jace35 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2006, 10:45 AM
  7. [SOLVED] excel formula to enter "0" if cell blank
    By Curt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2005, 04:30 AM

Tags for this Thread

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