+ Reply to Thread
Results 1 to 4 of 4

how to build a table vba that will add values like from 1,2,3 to 1,1.5,2 with a given freq

  1. #1
    Registered User
    Join Date
    09-09-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    6

    how to build a table vba that will add values like from 1,2,3 to 1,1.5,2 with a given freq

    how to build a function in vba that will take an input an array of values like from 1,2,3 n give 1,1.5,2,2.5,3 depending on a given frequency.
    for example if i what the table to split to semi annual dates it will go from 1-2yrs to 0.5yr, 1yr, 1.5yrs, 2yrs. etc
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: how to build a table vba that will add values like from 1,2,3 to 1,1.5,2 with a given

    non VBA solution.

    e1 =B19

    e2 =IF(OR($E1=7,$E1=""),"",MIN($B$20,$E1+$B$18)) and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: how to build a table vba that will add values like from 1,2,3 to 1,1.5,2 with a given

    Here is a macro that I use

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-09-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    6

    Re: how to build a table vba that will add values like from 1,2,3 to 1,1.5,2 with a given

    thank you but this isnt what i mean.
    so i will input that table into my function and get another table with 0.5 increments. this what i have so far:
    Please Login or Register  to view this content.
    it runs half gives me a #N/A error

+ 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] Build a Ingredient table based on two table
    By francisdsa in forum Excel General
    Replies: 6
    Last Post: 12-11-2016, 02:13 PM
  2. How to build a Loan table with a Pivot Table
    By Julio Lescano in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-18-2014, 11:20 AM
  3. Replies: 4
    Last Post: 11-18-2013, 11:59 AM
  4. [SOLVED] Freq distribution problem
    By Mirisage in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-23-2013, 08:41 PM
  5. Add number freq over 10
    By Stews in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2013, 03:03 PM
  6. [SOLVED] Build Table using selected fields from Table of data
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 01:45 PM
  7. 2 dimensional array and freq function?
    By dabith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2005, 04:56 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