+ Reply to Thread
Results 1 to 5 of 5

Adjusting a formula to add another function

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    el paso
    MS-Off Ver
    Excel 2007
    Posts
    4

    Red face Adjusting a formula to add another function

    Hi Ya'll,
    I just need some help adding another function to and existing formula.

    =IF(L6="","",IF(L6="Prof",60,IF(F6="M",INDEX('Run Times'!A3:K905,MATCH(L6,'Run Times'!A3:A905,0),MATCH(G6,'Run Times'!A3:K3,1)),IF(F6="F",INDEX('Run Times'!L3:V905,MATCH(L6,'Run Times'!L3:L905,0),MATCH(G6,'Run Times'!L3:V3,1)),""))))

    The formula above also need to include that if L6 has the text NG it needs to have a value of 0 but if it has a text of GO it needs to have a value of 60. I also attached the spreed sheet below. The column L that is labeled "2m Raw Score" needs to also be able to have the text NG which would equal 0 points or GO that would equal 60 in column O labled "2m points". I really appreciate any help.

    no names APFT and Weapons.xlsx
    Last edited by cheech1206; 04-12-2012 at 01:35 AM. Reason: added workbook

  2. #2
    Registered User
    Join Date
    04-01-2012
    Location
    North West, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Adjusting a formula to add another function

    =IF(L6="","",IF(L6="NG",0,IF(L6="GO",60,IF(L6="Prof",60,IF(F6="M",INDEX('Run Times'!A3:K905,MATCH(L6,'Run Times'!A3:A905,0),MATCH(G6,'Run Times'!A3:K3,1)),IF(F6="F",INDEX('Run Times'!L3:V905,MATCH(L6,'Run Times'!L3:L905,0),MATCH(G6,'Run Times'!L3:V3,1)),"")))))).

    I think you tried to add it on at the end, hence an #N/A error. Putting it in front will result in an answer, because F6 may very well contain an "M" or an "F", resulting in a TRUE answer, but then it cannot match & index L6.

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

    Re: Adjusting a formula to add another function

    just shorter i think..?

    =IF(L6="","",IF(L6="NG",0,IF(or(L6={"GO","Prof"}),60,IF(F6="M"....
    and maybe combine the first if statement
    =IF(or(L6={"","NG"}),0
    the result would be...
    =IF(or(L6={"","NG"}),0,IF(or(L6={"GO","Prof"}),60,IF(F6="M"....
    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

  4. #4
    Registered User
    Join Date
    04-13-2011
    Location
    el paso
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Adjusting a formula to add another function

    Thank yall so much. I cant believe that I missed something as simple as that. Thanks again.

  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: Adjusting a formula to add another function

    your very much welcome, from me and kassieK and of course the forum..

+ 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