+ Reply to Thread
Results 1 to 11 of 11

MinMax formula problem

  1. #1
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    MinMax formula problem

    Hi, I have this worksheet that transfers folders to a new directory based on cell value (Folder Copier). In that worksheet, there is a vlookup(D7,MinMax,2) formula in cell G7. Cell G7 will change according to what is keyed in D7. Example: key 101 in D7, G7 will change to 200. key 2950 in D7, G7 will change to 3000. The problem appears when i key something more than 3000. G7 will not change higher than 3000, can anyone see what is the problem?

    Attached is the file
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: MinMax formula problem

    C2:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: MinMax formula problem

    I looked at your workbook, and I think the problem is in your lookup table (Named range : MinMax = Sheet3!$B$2:$C$31), the last value in the table is 3000, so that is the last number it can use, to go higher you would have to add more values to your look-up table and expand the named range accordingly

    Hope this helps

    Edit-
    Or, if as your table suggest, you want it to always be a multiple of 100, use protonLeah's formula
    Last edited by dredwolf; 10-25-2013 at 12:55 AM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: MinMax formula problem

    Hi, thanks for your quick replies!! It's working fine now

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: MinMax formula problem

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: MinMax formula problem

    Hi, sorry for digging this thread up, but i found a problem.

    =100*(int(D7/100)+1) works fine with any number except for multiples of 100. If i key in 100 in cell D7, it will give me a range of 101 to 200 instead of 001 to 100.

    Can anyone help me with this problem? I have uploaded the file which im using now
    Attached Files Attached Files

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: MinMax formula problem

    maybe try it this way then :
    =IF(MOD(D7,100),100*(INT(D7/100)+1),D7)

    hope this helps

  8. #8
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: MinMax formula problem

    Hi dredwolf, thank you for helping. I keyed in your formula and I get a error that looks like this:

    Min Max
    -99 FALSE

    No matter what number i key into D7, the min / max doesnt change accordingly

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: MinMax formula problem

    Not sure what to say, it works fine for me with the sample you supplied
    Easy Folders 2014 (1).xls

  10. #10
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: MinMax formula problem

    Hi dredwolf, Thank you for your help. Maybe I didnt key in the formula correctly. I used the file that you sent back so as not to waste time figuring out which part I didnt key correctly. Thank you again

  11. #11
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: MinMax formula problem

    You are welcome

+ 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. [SOLVED] Problem with an IF formula
    By gillmcc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 09:35 AM
  2. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  3. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  4. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  5. Problem with formula
    By numerion in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 12:05 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