Results 1 to 5 of 5

Attempting to replicate IF(AND statement on VBA editor

Threaded View

  1. #1
    Registered User
    Join Date
    12-20-2019
    Location
    Arlington, TX
    MS-Off Ver
    2010
    Posts
    28

    Attempting to replicate IF(AND statement on VBA editor

    I have a small amount of data where I am trying to find a change in trend given within a series of days.

    Using an 'IF(AND statement' that returns the specific pattern I am inquiring. The statement goes as follows: =IF(AND(D2>D3,D3>D4,D4>D5,D5<D6),TRUE,"")

    I am trying to replicate this onto VBA editor as best I can, but I'm having trouble identifying the best way to write this.

    I want to be able to return TRUE statements as shown in this picture.

    I also want to know if there was a way to identify a day in the conditional series as a variable.

    IE: identify D4 as 'change'
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to replicate a formula
    By Kshari in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-15-2018, 02:01 AM
  2. [SOLVED] Workbook crashes when attempting to open VBA editor
    By j_analyst in forum Excel General
    Replies: 10
    Last Post: 09-03-2018, 06:33 PM
  3. [SOLVED] How to export code from a text editor in the main workbook to a text editor for many files
    By Feisty2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2018, 01:36 PM
  4. if statement comparing large number and # appears after in VBA Editor
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2014, 12:30 PM
  5. Replicate from one sheet to another
    By amjad.kamal in forum Excel General
    Replies: 4
    Last Post: 10-31-2012, 10:10 PM
  6. Replies: 0
    Last Post: 05-15-2012, 09:26 AM
  7. how to replicate...
    By jgrode in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2009, 10:47 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