+ Reply to Thread
Results 1 to 1 of 1

Modifying the Topmost Entry of a Table

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    Nova Scotia, Canada
    MS-Off Ver
    2007
    Posts
    22

    Modifying the Topmost Entry of a Table

    Good morning,

    I have several worksheets with a Table 1 in column A from A5:A15 for example (see below). Although every table in each worksheet has 10 rows from A5:A10, not every row contains a value (many tables will have blank entries, and the topmost entry of each table will vary from worksheet to worksheet). Can someone help me with the following macro?

    If the topmost entry of table 1 is greater than C1, then set the topmost entry equal to C1


    In the table below, if y in C1 = 0.75, then A5 would become 0.75

    If the topmost entry of table 1 is less than C1, then add the lesser of the following two values to the topmost entry of Table 1:

    1. The value needed for the sum of all entries in Table 1 to equal B1
    2. The value needed for the topmost entry of Table 1 to equal C1

    So if x in B1 = 8.6, and y in C1 = 0.95, then A5 becomes 0.9. However, if x in B1 = 8.6 and C1 = 0.88, then A5 becomes 0.88.

    M
    Attached Images Attached Images
    Last edited by excel_novice2019; 01-23-2019 at 09:06 AM.

+ 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. Help Modifying Some Code - Search Results Displayed as Table in Listbox
    By ajiljay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2017, 09:05 AM
  2. [SOLVED] Modifying table formula to extract data by price bands
    By chilli76 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-10-2016, 06:29 AM
  3. quickly modifying a table
    By mouseman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 11:13 AM
  4. Lookup & Display Value in Topmost Row
    By donkeybusiness in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-10-2013, 08:37 AM
  5. Must close or hide topmost modal form first
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2011, 01:41 PM
  6. Modifying Existing Code to Check if the entry exists
    By jason_kelly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2010, 10:39 AM
  7. Modifying Pivot table cell
    By junkscratch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2007, 03:41 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