+ Reply to Thread
Results 1 to 15 of 15

Crating a formula when a value is exceeded

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Crating a formula when a value is exceeded

    I have a set of values across every month. I need to create a formula that when the criteria is met it tells me what month it was met in. Example. I need to know via a formula when the value exceeds £100.
    The figures are jan 25, feb 37, March 58. This means the criteria was met in March. I need to create a formula that will give me that answer (March - in a separate cell) across a large range of data entries for individual customers.

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    Welcome to the forum!
    From your quick description INDEX and MATCH functions might be a good start, could you upload sample spreadsheet?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Crating a formula when a value is exceeded

    See Attachment. I hope it helps
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    Hi Nick, referring to your sample spreadsheet do you want column N to show which is the first month that exceeds 50?
    E.g. N6 should return mar, N7 should return jan, N8 should return feb?

    Assume the answer is yes, try this array formula (ctrl+shift+enter) in N6 and copy down till N11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Crating a formula when a value is exceeded

    What I want is that each time a comany passes a certain value it tells me which month it has passed that criteria in column N

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    I'm not getting the logic, could you put up the expected result base on your sample spreadsheet?
    N6=?
    N7=?
    N8=?
    N9=?
    N10=?
    N11=?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  7. #7
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Crating a formula when a value is exceeded

    Think Alvin's formula does return what you're after. But since you are using Excel 2003, IFERROR does not exist

    You could try this rendition in N6, and normal ENTER will do:
    =IF(ISNA(MATCH(TRUE,INDEX($B6:$M6>=50,),0)),"",INDEX($B$4:$M$4,1,MATCH(TRUE,INDEX($B6:$M6>=50,),0)))
    Copy down

  8. #8
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Creating a formula when a value is exceeded

    Hi Max

    Please see attached spreadsheet. Your assumption is correct but it still didnt like the formula.

    Nick
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    Hi Max, thanks for the highlight.
    Hi Nick, I tested Max formula successfully.

    Here's another variation using array formula (ctrl+shift+enter).

    Formula: copy to clipboard
    Please Login or Register  to view this content.





    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin
    Last edited by alvin-chung; 01-13-2014 at 12:17 PM.

  10. #10
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Crating a formula when a value is exceeded

    Alvin

    I think we are nearly there. The formula you have sent works but only when a £50 value is achieved in a particualr month. I need it to highlight the month that the running value exceeds £50. For instance jan £22, Feb £6, March £37. This means in March the value went past £50 and that is why I would need March highlighted. It could be any month during the year.

    Thanks for all of your help so far.


    Quote Originally Posted by Max, Singapore View Post
    Think Alvin's formula does return what you're after. But since you are using Excel 2003, IFERROR does not exist

    You could try this rendition in N6, and normal ENTER will do:
    =IF(ISNA(MATCH(TRUE,INDEX($B6:$M6>=50,),0)),"",INDEX($B$4:$M$4,1,MATCH(TRUE,INDEX($B6:$M6>=50,),0)))
    Copy down

  11. #11
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    Hi Nick,

    Try this array formula (ctrl+shift+enter) to get month where cumulative value >50.
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Crating a formula when a value is exceeded

    Pl see attached file with formula and criteria for each row.Array formula (ctrl+shift+enter) is used.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 01-15-2014 at 04:56 AM.

  13. #13
    Registered User
    Join Date
    01-10-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Crating a formula when a value is exceeded

    Alvin

    Thankyou, this has worked!!

    Regards

    Nick

  14. #14
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Crating a formula when a value is exceeded

    Thanks for the feedback.Pl mark the thread solved.

  15. #15
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Crating a formula when a value is exceeded

    Quote Originally Posted by Nick1966 View Post
    Alvin

    Thankyou, this has worked!!

    Regards

    Nick
    Thank you for the feedback, you're welcome



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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. VBA or formula to check a certain number is never exceeded
    By samcdavies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 10:11 AM
  2. Replies: 7
    Last Post: 02-29-2012, 12:06 PM
  3. Crating pivot tables using Loops
    By booo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2010, 06:47 PM
  4. help in crating a macro
    By shishirnaik55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2009, 03:21 AM
  5. [SOLVED] Help crating a formula with various arguments
    By GretPR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2005, 07:06 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