+ Reply to Thread
Results 1 to 2 of 2

trying to push remaining figure if less than 0 to another box titled spare

  1. #1
    Registered User
    Join Date
    10-01-2019
    Location
    Southport
    MS-Off Ver
    professional plus 2016
    Posts
    1

    trying to push remaining figure if less than 0 to another box titled spare

    Hi Everybody new to this and a bit of a beginner.
    I am trying to make a table to help with distribution of new jackets to staff in different branches.
    if you look at the attached excel sheet you will see that i have different branches with info of chefs names how many they need then further info at bottom of individual tables of trying to figure out numbers needed minus stock in use currently. iam am still collecting actual data for the tables but have hit upon a problem in the bottom calculations. If we look at St Helens table (F88) we can see i require 2 XL jackets but have 10 XL jackets in stock (F89) this brings up a total of -8 in (F90) what i would like is a formula or a macro that would run along the line of (totals needed to buy) upto in this case (G90) to enter the value of 0 if none needed, however if over ie. the remaining 8 it would push this remainder figure to the spare box (H81) so as i can then see easily what spares i have to distribute. However then it gets further confusing as im wondering if there is a way to actually write some sort of macro that would recognise the size of these remainder values as in the box (F80) and add this to the box (H82)?

    like i said i am a bit of a beginner to this so there may be a much easier solution that im not seeing but as this is just the start of this sheet and it will be used a lot in future i thought i would ask for some help and advise.

    Thank you in advance and sorry if i have made it all sound more complicated than it is.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,345

    Re: trying to push remaining figure if less than 0 to another box titled spare

    Hello mrmrvr88 and Welcome to Excel Forum.
    Perhaps the following will help.
    For the 'Totals needed to buy' rows (modeled in row 90) use: =MAX(0,B88-B89)
    Put the 'Spare' row underneath each segment (row 91) and populate using: =MAX(B89-B88,0)
    This should make it easy to see which size jackets are listed.
    You could then total all of the spares (row 106) using: =SUMIFS(B5:B105,$A5:$A105,$A106)
    Let us know if you have any questions.
    Attached Files Attached Files
    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. How I get spare and active
    By alipezu in forum Excel General
    Replies: 3
    Last Post: 12-25-2016, 02:20 AM
  2. VBA to hide a tab and create control button titled with tab name
    By freddie0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2016, 10:04 AM
  3. [SOLVED] Macro to find range titled same as cell value
    By BuenosDias in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-08-2014, 10:29 AM
  4. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  5. Taking remaining value and sharing across remaining months?
    By kickme93 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2013, 08:54 AM
  6. Referencing sheets titled as dates?
    By palmer0524 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2008, 03:10 PM
  7. [SOLVED] Generating multiple sheets within a workbook all titled with a ca.
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 06:06 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