+ Reply to Thread
Results 1 to 8 of 8

Replace cell with another number

  1. #1
    Registered User
    Join Date
    03-03-2008
    Posts
    3

    Replace cell with another number

    I'm sure this will be easy for someone, or perhaps it's not doable. Here's my issue (and I'm no excel expert, so be easy on me):

    I have a calculation sheet created, and I simply need one cell to calculate a total based on user input information. This is working great with drop down selections and all. Now I need to do a check on the total. If the total is < 50 dollars, then we need to force the total to say 50, because that's the minimum. I'm having no luck. Anything that'll help me at this point is welcomed. Please! Thanks.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post some more info like range etc

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    03-03-2008
    Posts
    3
    It's a very simple sheet in reality! It's a rent calculator, so the user chooses their city (dropdown) B2, number of people in house (B3), monthly income (B5), and then rental amount (B6). B7 then calculates the rent amount they'd be responsible for if they were approved for public housing. If B7's total is < 50 dollars, then I need to force B7 to say 50 since that's the minimun number anyone can pay. I hope this makes sense. Thanks again.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    What formula in B7

    VBA Noob

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Change your formula in B7 like this

    =MIN(50,original_formula)

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    dll's typing too fast: =MAX(50, original_formula)

  7. #7
    Registered User
    Join Date
    03-03-2008
    Posts
    3
    Beauty! MAX(50, Original) worked. Fewf! Thanks oh so much!

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Quote Originally Posted by shg
    dll's typing too fast: =MAX(50, original_formula)
    No.....thinking too slow

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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