+ Reply to Thread
Results 1 to 7 of 7

IF problem ?? cell contains text and numbers

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2000
    Posts
    11

    IF problem ?? cell contains text and numbers

    How you wood fix this:

    If B2 contains AA & A1 (as text from drop down list) and C2 contains 1A (as text from list) then return formula: (2+2)*3 results into cell F2
    Attached Files Attached Files
    Last edited by Dr Win; 06-12-2012 at 05:21 PM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF problem ?? cell contains text and numbers

    Hello

    =IF(AND(B2="AA & A1",C2="1A"),(2+2)*3,"")

    but i think there is more on this rules you should provide.
    where did (2+2)*3 came from.
    How about if
    AA& A1 - 1.5A etch.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF problem ?? cell contains text and numbers

    This is probably way too simplistic, but without knowing all the details, try....

    =IF(AND(B2="AA & A1",C2="1A"),(2+2)*3,"")

    When i entered that, i got a time format, o you may waht to change the format to general or number?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-22-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2000
    Posts
    11

    Re: IF problem ?? cell contains text and numbers

    Thank you for answer, it is working on sample sheet, but I am trying to make-work in my project and I am stack

    Can you help me to input this formula into cell N12, ;

    =IF(AND(I12="3up m&f",J12="6"),((INDEX(Sheet2!D:D,MATCH(L13,Sheet2!E:E),1))-( INDEX(Sheet2!$D:$D,MATCH(K12,Sheet2!D:D)+1,1)))*2+(INDEX(Sheet2!G:G,MATCH(L13,Sheet2!E:E),1))),"")/60/60/24

    correct (or) has to show 1:09.70,.....
    Attached Files Attached Files

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF problem ?? cell contains text and numbers

    paste this.

    =IF(AND(J12=6,I12="3up m&f"),((INDEX(Sheet2!D:D,MATCH(L13,Sheet2!E:E),1))-( INDEX(Sheet2!$D:$D,MATCH(K12,Sheet2!D:D)+1,1)))*2+(INDEX(Sheet2!G:G,MATCH(L13,Sheet2!E:E),1)))/60/60/24

    you'll receive 0:00.00 if j12 is not 6 and not 3up m&f

  6. #6
    Registered User
    Join Date
    05-22-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2000
    Posts
    11

    Re: IF problem ?? cell contains text and numbers

    Thank you, and it is working.
    So how you will make all combination, from that lists, (J12 has: 8 numbers but I like to treat them as text, because may change list and add some letters) and I12 has list of 5 items / text. There is 40 combinations and I like to put different formulas for all 40. Just need sample for start. So first one is this like is now, so how I will add second one which will be when J12 is 6 but I12 is 3up fem and etc,..

    And correct results in N12 is 1:09.48, if you can check that.

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF problem ?? cell contains text and numbers

    Just suggestion, create a table for all combination then use index match to display the result in K12..
    then you do not need the =IF(AND(J12=6,I12="3up m&f") anymore the formula in N12 will rely in I,J,K,L and M


    FIFTS (1).xls

    I hope I got the idea correct.

+ 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