+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Issue with MAX function if cell contains text

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    7

    Issue with MAX function if cell contains text

    Hi all,

    I am trying to initiate a MAX function if the cell contains spcefic text (Mobile vs Fixed)

    However I am getting null and False returns!

    Below is not functioning well!

    {=IF(ISNUMBER(SEARCH("Mobile",$B$7:$B$3173)),MAX($C$7:$C$3173*(($A$7:$A$3173=$G3)*($D$7:$D$3173=H$2))))}

    Attached is the spreadsheet I am working on

    Appreciate your help

    Thanks in advance
    Attached Files Attached Files
    Last edited by mamady; 09-26-2011 at 02:12 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Issue with MAX function if cell contains text

    MAX needs to the "outside" function - I'd use this formula in I9

    =MAX(IF(ISNUMBER(SEARCH(I$10,$B$7:$B$3173)),IF($A$7:$A$3173=$G3, IF($D$7:$D$3173=$G$9,$C$7:$C$3173))))

    confirmed with CTRL+SHIFT+ENTER and copied down to I13
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-18-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Issue with MAX function if cell contains text

    Great, thank you very much. It works, however, when I drag the formula down, only the results for first two carriers are showing, and 0 for the rest, although the reference text is there in the range!
    (0 results for TATA, GTS and Batelco)

    any thoughts dear?

  4. #4
    Registered User
    Join Date
    07-18-2011
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Issue with MAX function if cell contains text

    no worries dear, I just discovered my mistake

    the formula works great

    thank you again

+ 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