Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2018, 01:22 PM
wheddingsjr wheddingsjr is offline Formula to delete but maintain counts after the maximum has been reached Windows 7 64bit Formula to delete but maintain counts after the maximum has been reached Office 2016
Advanced Beginner
Formula to delete but maintain counts after the maximum has been reached
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default Formula to delete but maintain counts after the maximum has been reached

Hi all



I have a spreadsheet that contains four columns of data (see attached). Column ‘C’ is a formula that tallies the numbers in column ’B’. The accumulation is based on the acct# in column ‘A’. Each time the Acct# changes the count starts again.
Column ‘E’ is a formula that adds column ‘D’ & ’B’. The formula that I don’t have but need is for column ‘D’. Is there a formula that can be written that looks at column ‘C’ to determine if that number exceeds “12” and if so by how much? (see sample in column D). So, at the end of the day, column ‘C’ will have the tallied total, column ‘D’ will have the number of units over by line, and column ‘E’ will have the maximum of 12 units. Obviously the two columns added would equal column ‘C’. I have been manually going through 30k+ lines manually doing this and if there is a formula that could help me that would be greatly appreciated.

Thanks
Attached Files
File Type: xlsx Book2.xlsx (17.3 KB, 18 views)
Reply With Quote
  #2  
Old 01-03-2018, 01:38 PM
NBVC's Avatar
NBVC NBVC is offline Formula to delete but maintain counts after the maximum has been reached Windows 10 Formula to delete but maintain counts after the maximum has been reached Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

In D2, try:

=IF(C2<=12,"",-(MIN(B2,C2-12)))

or

=-MAX(0,(MIN(B2,C2-12))) with custom format 0;[Red](0);;@

If you choose first formula, then in order not to get #VALUE! error in column E, change formula in E2 to:

=SUM(D2,B2)

both copied down
Reply With Quote
  #3  
Old 01-03-2018, 01:49 PM
wheddingsjr wheddingsjr is offline Formula to delete but maintain counts after the maximum has been reached Windows 7 64bit Formula to delete but maintain counts after the maximum has been reached Office 2016
Advanced Beginner
Formula to delete but maintain counts after the maximum has been reached
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default

WOW!!!

Thanks NBVC. That was incredibly easy and worked fantastically. I appreciate your assistance
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to delete but maintain counts after the maximum has been reached Calculate counts between fluid rows - TIME rgauss Excel 3 01-18-2017 04:09 PM
Word 2011 error in character counts Arbor Friend Word 0 12-17-2016 12:56 PM
Formula to delete but maintain counts after the maximum has been reached How to maintain formula while using Merge and Centre command Aditya M Excel 1 04-11-2016 11:25 PM
Maximum number of working days reached= warning color perZZon Excel Programming 1 05-09-2014 03:01 PM
Formula to delete but maintain counts after the maximum has been reached Delete Formula ibrahimaa Excel 1 06-24-2011 09:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft