Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2023, 08:52 AM
ExcelGuy362 ExcelGuy362 is offline Formula for Excel? Windows 10 Formula for Excel? Office 2019
Novice
Formula for Excel?
 
Join Date: Jun 2023
Posts: 2
ExcelGuy362 is on a distinguished road
Default Formula for Excel?

Hi. I keep forgetting how to achieve the desired result in Excel.

Say that I want a Cell (Let’s say, B1) to contain an initial value of 31, and as I add a number in A1, it decrements B1's value by 1, and the very minimum number is 1, so, if I put an outrageously large number (10,000), for instance, B1 still will have a value of 1.
Reply With Quote
  #2  
Old 06-21-2023, 10:02 AM
ExcelGuy362 ExcelGuy362 is offline Formula for Excel? Windows 10 Formula for Excel? Office 2019
Novice
Formula for Excel?
 
Join Date: Jun 2023
Posts: 2
ExcelGuy362 is on a distinguished road
Default

I have found not only an answer, but, an improved version of the answer! If you put =MAX(MIN(A1-1,1),3-A1) in B1, it's going to have a 3 in B1. The improvement is the fact that I accounted for negative values. So, if you put -359, for instance, it's going to result in B1 having a value of 362.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Formula - Help guiverdi Excel 2 07-23-2017 11:48 PM
Formula for Excel? Excel formula help please! dreamer1963 Excel 2 03-16-2014 03:59 AM
Help with excel formula GoldenSlumbers Excel 2 12-13-2012 03:32 AM
Formula for Excel? ** Excel Formula djreyrey Excel 8 04-15-2011 03:55 PM
Excel Formula Help masoom84 Excel 1 03-07-2009 09:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 AM.


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