+ Reply to Thread
Results 1 to 3 of 3

Excluding certain value from max function that has multiple separated values

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Johor Bahru, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Excluding certain value from max function that has multiple separated values

    Uniform Issuance Analysis.xls

    I'm trying to make sense of the uniform database at my company (it's a Japanese owned company, and they just love to wear uniforms). I want compile and analysis the latest issued uniform sizes and types to assist me in planning for new procurement quantity and stock-in-hand planning. I've managed to return the latest issue data at row N to Q. However, I want the formula to exclude the "Maternity" data and select the next non-"Maternity" latest data. I've tried to use the combination of IF and MAX function and insert it into the "Type" row, but to no avail. I would appreciate it very much is you guys could help me sort this problem out.


    Formula for type row

    =OFFSET(INDIRECT(CELL("address",INDEX(R6:AO6,MATCH(MAX(R6,V6,Z6,AD6,AH6,AL6),R6:AO6,0)))), 0, 1, 1, 1)

    Formula for date issued
    =MAX(R6,V6,Z6,AD6,AH6,AL6)

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Excluding certain value from max function that has multiple separated values

    you could change you max statment and put that in your Date issued column, then reference that from the other cells, see the attached.

    =MAX(IF(S5<>"Maternity",R5,0),IF(W5<>"Maternity",V5,0),IF(AA5<>"Maternity",Z5,0),IF(AE5<>"Maternity",AD5,0),IF(AI5<>"Maternity",AH5,0),IF(AM5<>"Maternity",AL5,0))
    Attached Files Attached Files
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Excluding certain value from max function that has multiple separated values

    Is your issue resolved? If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

+ 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