+ Reply to Thread
Results 1 to 2 of 2

Formula/VBA to calculate sum in adjacent cells with conditions & transfer to last cell

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula/VBA to calculate sum in adjacent cells with conditions & transfer to last cell

    Hi,

    I have data in the sample format below. There are many thousands of rows of data. I have min and max prod date. Column values represent number of pallets. I am not sure how to explain what I need to do. I have given expected outcome to make it easier to understand.

    Any full pallets (full pallets refers to whole numbers) stay in the same cell and any part pallets (decimals) needs to be carried over until a next full pallet can be formed. If a full pallet cannot be formed in between min and max prod date, any/all partial pallets need to be transferred to the date after max prod date.

    I was thinking to use mod and quotient but I am stuck as to how to do it as a process in finding next partial or full pallet and keep running until the date after max date.


    Thanks
    Attached Files Attached Files
    Last edited by kaav06; 05-19-2021 at 07:37 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Formula/VBA to calculate sum in adjacent cells with conditions & transfer to last cell

    All of the values in the file seem to be text (can be determined because they slide to the left when alignment formatting is removed) with the exception of cells K5 and K11.
    Please upload another file in which dates are actual dates and values in tables are numbers.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. MAXIFS or MAX on Non-adjacent Cells with Conditions
    By charliechaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2020, 11:30 PM
  2. [SOLVED] Making a cell searchable & transfer values to adjacent cells
    By Clarkit in forum Excel Programming / VBA / Macros
    Replies: 45
    Last Post: 11-29-2018, 12:51 PM
  3. add row and transfer cells data when conditions is met
    By zephyrezs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2017, 05:10 PM
  4. [SOLVED] Formula to transfer data from one range of cells to another based on conditions
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2017, 02:56 PM
  5. Replies: 3
    Last Post: 04-06-2016, 12:19 PM
  6. Replies: 5
    Last Post: 08-10-2012, 04:32 PM
  7. Cell transfer to another sheet on certain conditions
    By IvarZhukovsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2011, 08:32 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