+ Reply to Thread
Results 1 to 4 of 4

MAX & IFs

  1. #1
    Registered User
    Join Date
    07-09-2007
    Posts
    2

    MAX & IFs

    Dear Excel masters,

    Column B contains numbers and Column C contains some data related to the Column B number in the same row. I want a formula that selects the maximum value from column and then "adds" (in the non-mathematical sense) the Column C data from the same row, IF it fulfils a certain criteria (I believe I have this part sorted)

    i.e. if the max value is 35 and the cell next to it contains "n/o", I want the formula to give me 35n/o.

    So far I have: =MAX(B4:B20)&IF(C4:C20="n/o","n/o",""), but this is not successful.

    Thank you for your assistance,

    Raju

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by madbassist
    Dear Excel masters,

    Column B contains numbers and Column C contains some data related to the Column B number in the same row. I want a formula that selects the maximum value from column and then "adds" (in the non-mathematical sense) the Column C data from the same row, IF it fulfils a certain criteria (I believe I have this part sorted)

    i.e. if the max value is 35 and the cell next to it contains "n/o", I want the formula to give me 35n/o.

    So far I have: =MAX(B4:B20)&IF(C4:C20="n/o","n/o",""), but this is not successful.

    Thank you for your assistance,

    Raju
    Hi,

    try

    =MAX(B4:B20)&IF(INDIRECT("c"&3+MATCH(MAX(B4:B20),B4:B20,0))="n/o",INDIRECT("c"&3+MATCH(MAX(B4:B20),B4:B20,0)),"")

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    07-09-2007
    Posts
    2
    Thanks a lot!

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by madbassist
    Thanks a lot!
    np - and thanks for your response.

    ---

+ 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