+ Reply to Thread
Results 1 to 2 of 2

Macro to create a table under conditions.

  1. #1
    Registered User
    Join Date
    04-22-2019
    Location
    cordoba
    MS-Off Ver
    2010
    Posts
    1

    Post Macro to create a table under conditions.

    Hi everyone! I have a problem that I cant solve so ill try to explain
    I have 2 collums, one with Names or Ingredients, and another with a number values.
    I need a macro that analices this information, pick the lowests values, and generates a new table with all the ingredients below, lets say, 75, BUT the total sum of it must not be more than 75.

    so:

    - create a table with:
    - lowest values of ingredientes (and the ingredient name) in crescent order(<75)
    - untill the sum reach 75, so the table must stop creating itself when the sum its 75 or more.

    i dont know if i explain myself good, so let me know and ill try to explain it better!
    regards!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Macro to create a table under conditions.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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

+ 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. Create a new table from two updating worksheets under various conditions
    By PaulAllen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2017, 02:19 AM
  2. Macro to fill 1st table with info from 2nd table. 2nd table search with 2 conditions
    By Ribeiro.JD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2016, 02:03 PM
  3. How to create a dynamic macro that will create pivot table
    By thlee1122 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2015, 11:49 PM
  4. How to create a macro to create a pivot table on a new sheet
    By thlee1122 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2015, 11:14 AM
  5. Create a macro to create a pivot table in a worksheet
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2015, 10:53 AM
  6. Macro to copy a table and paste in another table (based on certain conditions)
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2013, 01:14 PM
  7. How do I create a macro(func) to calc. attendance with a set of specific conditions
    By Fredster31 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2010, 12:02 PM

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