+ Reply to Thread
Results 1 to 4 of 4

USING IF ISTEXT OR ISNUMBER THEN INDEX MATCH OR calculation

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    13

    USING IF ISTEXT OR ISNUMBER THEN INDEX MATCH OR calculation

    Hi there,

    I have never had to do this type of logic before so hopefully someone can help me out.

    Based on a cell value being Text OR Numberic I need to return either and Index Match calclation or a straight Cell C35 * E35

    Can anyone help.


    So the formula for is currently for Text only :

    =INDEX(RampUp,MATCH($C34,RowHead_RampUp,0),MATCH(G28,ColHead_RampUp,0))*$E35*(VLOOKUP(G30,$CE:$CF,2,0))


    When I add in the ISTEXT logic, the result I am getting is True or False and I need the result to be a numeric calculation:

    =IF((ISTEXT((INDEX(RampUp,MATCH($C34,RowHead_RampUp,0),MATCH(F28,ColHead_RampUp,0))*$E35*(VLOOKUP(F30,$CE:$CF,2,0))))), $C34*$E35)

    Please let me know if you need anything more to help :-)

  2. #2
    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,929

    Re: USING IF ISTEXT OR ISNUMBER THEN INDEX MATCH OR calculation

    you dont have a 3rd part to your if() statement....

    if(criteria,true,false)

    =IF( ISTEXT(INDEX(RampUp,MATCH($C34,RowHead_RampUp,0),MATCH(F28,ColHead_RampUp,0))*$E35*(VLOOKUP(F30,$CE:$CF,2,0))), $C34*$E35,C35 * E35)

    also, you have a few extra () in there that you dont really need, so i removed them
    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

  3. #3
    Registered User
    Join Date
    04-19-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: USING IF ISTEXT OR ISNUMBER THEN INDEX MATCH OR calculation

    ahh okay, the IF Criteria is if the cell x1 contains text then, true, false

    How do I add this in to the Criteria

  4. #4
    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,929

    Re: USING IF ISTEXT OR ISNUMBER THEN INDEX MATCH OR calculation

    i did it for you, in the green highlighted part

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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