+ Reply to Thread
Results 1 to 5 of 5

help writing excel equation if statement into vba

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    58

    help writing excel equation if statement into vba

    hi everyone, i'm trying to write this formula excel if equation

    =IF(D17="vacant","average of occupied "&C17,"")

    into something like ws.Range("I17").Formula

    this is driving me nuts. can somebody please help.

    thanks

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: help writing excel equation if statement into vba

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: help writing excel equation if statement into vba

    Hi,

    Try
    Please Login or Register  to view this content.
    Hope this helps

  4. #4
    Registered User
    Join Date
    10-10-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: help writing excel equation if statement into vba

    thank you very much ajryan88 and ollyxls

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: help writing excel equation if statement into vba

    You're welcome

    Please don't forget to mark this thread as solved, and please click on the * next to the posts that were helpful to you

+ 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. Re: Writing a IF statement for Excel -- Memory Problem
    By The Artful Dodger in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-30-2014, 08:48 PM
  2. Help with writing polynomial equation in excel
    By el4n in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2012, 10:39 AM
  3. Replies: 1
    Last Post: 05-13-2011, 03:41 PM
  4. Need help writing an equation
    By weplayendlessly in forum Excel General
    Replies: 2
    Last Post: 10-24-2009, 09:50 PM
  5. Help in writing an Excel equation
    By JasonQ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2005, 10:30 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