+ Reply to Thread
Results 1 to 4 of 4

2 conditioal outputin 1 column based on max values

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 365
    Posts
    51

    2 conditioal outputin 1 column based on max values

    I have attached a example where i want to get max values from column a & b

    i have manually typed the output i require in column d.

    The problem is if the output is between 1-9 then output shpuld be 01, 02.....so on.
    After 9 should be 10, 11,....so on.

    Pls advise one formula as i have many recors in it.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: 2 conditioal outputin 1 column based on max values

    Try this:

    =IF(B1=TEXT(MAX(IF($A$1:$A$6=A1,IF($C$1:$C$6=C1,--$B$1:$B$6))),"0"),TEXT(MAX(IF($A$1:$A$6=A1,IF($C$1:$C$6=C1,--$B$1:$B$6))),"00"),"")

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

    Which version of Excel are you using?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 365
    Posts
    51

    Re: 2 conditioal outputin 1 column based on max values

    I get output as 01,02,...so on, but i need only max of 1st 2 rows
    if bt1 is 1 & 2, the only 02 should be shown in the max field only that is row 2, i.e. Exactly as in column d
    bt1 1 bt-xt
    bt1 2 bt-xt 02

    can we get it above way.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: 2 conditioal outputin 1 column based on max values

    Enter formula as ARRAY formula (Ctrl+Shift+Enter) as per post #2

+ 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 Code to Paste Values a Table Column Based on Values in Another Column
    By demiwen12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2020, 05:39 PM
  2. Replies: 7
    Last Post: 10-23-2018, 10:18 AM
  3. Replies: 4
    Last Post: 10-17-2017, 01:45 PM
  4. [SOLVED] Conditioal sum formula
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2015, 05:11 AM
  5. Replies: 1
    Last Post: 04-19-2013, 09:47 AM
  6. How do I total only specific values in a column based on the values in another column
    By Needy McHelpson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2009, 12:17 PM
  7. Conditioal formatting problem
    By HDV in forum Excel General
    Replies: 3
    Last Post: 09-22-2005, 10:05 AM

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