+ Reply to Thread
Results 1 to 14 of 14

find first possible requested amount

  1. #1
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    find first possible requested amount

    dear,

    I have a data set which can be found in column B-J
    If would like to have a formula that finds the first requested amount (filled in cell O3) or higher and the sooner the better in the requested color.

    for example. I would like to know the week in green where I have 17 or more. (week must be showed in cell N6 and the letter code need to be showed in O6)

    What kind of formula do I need to make?

    Thanks in advance.

    find first week that amounts can be made.xlsx

    Regards
    jaapaap

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: find first possible requested amount

    Okay, first, I put the Codes in a single row (2), not sure why you had them staggered like that but makes everything difficult.

    Second, I created 3 defined names
    Green = B1:E100
    Yellow = F1:H100
    Red = I1:J100
    Then in N6 copied down, this ARRAYED Formula

    =MIN(IF(ISNUMBER(INDIRECT(M6)), IF(INDIRECT(M6)>=$O$2, ROW(INDIRECT(M6)))))+7


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    In O6 (not arrayed)
    =INDEX($B$2:$J$2, MATCH($O$2, INDEX(Green, MATCH(N6,$A:$A,0),))+1)
    In O7 (not arrayed)
    =INDEX($B$2:$J$2,MATCH($O$2,INDEX(Yellow,MATCH(N7,$A:$A,0),))+COLUMNS(Green)+1)
    In O8 (not arrayed)
    =INDEX($B$2:$J$2, MATCH($O$2, INDEX(Red, MATCH(N8,$A:$A,0),))+1+COLUMNS(Green)+COLUMNS(Yellow))
    See attached.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: find first possible requested amount

    You could use this formula in O6 copied down, if preferred (not an array)

    =INDEX($B$2:$J$2, MATCH($O$2, INDEX(INDIRECT(M6), MATCH(N6,$A:$A,0),))+COLUMN(INDIRECT(M6))-1)

  4. #4
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    Re: find first possible requested amount

    wow that looks great.

    maybe I do not understand you correctly. By how did you create the defined names? try to understand your formulas. For understanding the values in line 2 are changing in the real sheet and are no letters but numbers as well.


    other thing:
    if I put 1 in cel O2 I have two errors.

    in O7 it is not code (i) but it is code is (f)

    I have an error message in O8. What is the problem there.

    The other formula does not work in this sheet but is also fine to have.
    Last edited by jaapaap; 10-14-2015 at 10:57 AM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: find first possible requested amount

    Not sure what Version of Excel you are using. Defined Names can be found on the FORMULA tab of the ribbon. Click on Name Manager then "New" or on "Define Name" and define it as I did in Post #2. The formulas won't work until you have the defined names.

    The errors occur because my formula, 1 assumes values are increasing left to right, and, 2 looks for the largest value less than or equal to the value in O2. The value in I23 is actually 1.18 so there are no values less than or equal to. I think I will need to rethink this. The formulas might get complex.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: find first possible requested amount

    It is a real challenge, though i tried to jump in. Check attachment.
    Quang PT

  7. #7
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    Re: find first possible requested amount

    it works indeed.

    unfortunately, the letter are in fact numbers. If I change this into number it is not working anymore and I this is really to difficult for me to understand this formula.

    is it possible to make it work with numbers in stead of letters. see att. 424830d1444848438-find-first-possible-requested-amount-copy-of-find-first-week-that-amounts-can.xlsx

    regards

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: find first possible requested amount

    Looks like a winner Quang. Nice job working through that.

    jaapaap, in the formula in O6, change "ISTEXT" to "ISNUMBER"
    Last edited by ChemistB; 10-14-2015 at 03:50 PM.

  9. #9
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    Re: find first possible requested amount

    wow, only one problem. I really have no clue how you did it..

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: find first possible requested amount

    Nice to hear it works.

  11. #11
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    Re: find first possible requested amount

    will post something later
    Attached Files Attached Files
    Last edited by jaapaap; 10-15-2015 at 01:52 AM.

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: find first possible requested amount

    See attachment
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    07-15-2015
    Location
    germany
    MS-Off Ver
    365
    Posts
    100

    Re: find first possible requested amount

    thank you very much. Everything works smoothly.

    It is hard for me to understand really what you did but it works nicely.

    where can I hit the "solved" button?
    Last edited by jaapaap; 10-16-2015 at 07:38 AM.

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: find first possible requested amount

    On the first post, there's a dropdown for thread tools. That's where the option to "Mark Solved" is.
    If you have specific questions on the formulas, I'll be glad to help.

+ 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. Find a requested word within sentences and output those sentences elsewhere
    By swfred2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2014, 02:24 PM
  2. [SOLVED] find values that add up to certain amount
    By Joshua Jacoby in forum Excel General
    Replies: 14
    Last Post: 05-08-2013, 09:13 PM
  3. [SOLVED] Trying to find a formula to find a random $ amount in a text in a cell
    By Miki1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 10:13 PM
  4. [SOLVED] Find amount under budget.
    By azland00123 in forum Excel General
    Replies: 7
    Last Post: 05-07-2012, 01:18 PM
  5. how to find the top 3 amount per customer?
    By mackie8 in forum Excel General
    Replies: 3
    Last Post: 03-21-2011, 01:35 AM
  6. Replies: 3
    Last Post: 05-13-2009, 10:51 AM
  7. find same amount in different workbooks
    By Debbie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2005, 07:10 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