+ Reply to Thread
Results 1 to 48 of 48

Stuck on correct function(s) & formula!

  1. #1
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Question Stuck on correct function(s) & formula!

    On my spreadsheet tab 'Scores and Assigned Priorities', I have a Baseline score (column D) and a Next Assessment score (column E).

    I need column G to:

    1. know the difference if column D has a score and column E is empty
    2. rate the score in column D when it's by itself AND (E minus D) only when both have a score
    3. rate the D or (E-D) score as 1=high, 2=medium, 3=low, 4= NA, NA=NA

    This is what I have so far, but it's not working when D is the only column with a score in it. I've tried a bunch of OR, AND functions, but that didn't help. I'm out of my league :D

    =IF(SUM(E71-D71)<=0,"HIGH",IF(SUM(E71-D71)<=1,"MEDIUM",IF(SUM(E71-D71)=2,"LOW",IF(SUM(E71-D71)>=3,"NA"))))

    Thanks for any assistance. The file is attached.
    Catherine
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    It looks fine to me, can't see an issue. If it is an N/A issue just try - If(E71="", that should stop the error.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    What is the result required when E="NA"?

  4. #4
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Tried that. It still has the #value! error.

  5. #5
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    It gives the #value! error

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    =IF(E71="NA",IF(D71=1,"HIGH",IF(D71=2,"Medium",IF(D71=3,"Low","N/A"))),IF(E71-D71<=0,"High",IF(E71-D71=1,"Medium",IF(E71-D71=2,"Low",IF(E71-D71=3,"N/A")))))

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Replace ????? with required outcome

    =IF(E71="NA","?????",IF(E71-D71<=0,"HIGH",IF(E71-D71<=1,"MEDIUM",IF(E71-D71=2,"LOW",IF(E71-D71>=3,"NA")))))

  8. #8
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    =IF(OR(E71="NA",E71=""),IF(D71=1,"HIGH",IF(D71=2,"Medium",IF(D71=3,"Low","N/A"))),IF(E71-D71<=0,"High",IF(E71-D71=1,"Medium",IF(E71-D71=2,"Low",IF(E71-D71=3,"N/A")))))

    This also covers you if it is empty.

  9. #9
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Quote Originally Posted by DannyJ View Post
    =IF(E71="NA",IF(D71=1,"HIGH",IF(D71=2,"Medium",IF(D71=3,"Low","N/A"))),IF(E71-D71<=0,"High",IF(E71-D71=1,"Medium",IF(E71-D71=2,"Low",IF(E71-D71=3,"N/A")))))
    Ok, that helped, but, G is still showing "MEDIUM" if there is a number value in column D and NA in column E.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    .... please answer ....

    What is the result required when E="NA"?

  11. #11
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    What do you want it to show? That's how your formula is written. See JohnTopley's. It is the same as mine but shows yo uwhere to change it to what you want.

    2. rate the score in column D when it's by itself AND (E minus D) only when both have a score

    That suggests to me if D i s2 and E is NA you want it to show "Medium"
    Last edited by DannyJ; 09-26-2016 at 09:13 AM.

  12. #12
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Talking Re: Stuck on correct function(s) & formula!

    =IF(OR(E71="NA",E71=""),IF(OR(D71="NA"),IF(D71=1,"HIGH",IF(D71=2,"MEDIUM",IF(D71=3,"LOW","NA"))),IF(E71-D71<=0,"HIGH",IF(E71-D71=1,"MEDIUM",IF(E71-D71=2,"LOW",IF(E71-D71=3,"NA"))))))


    Almost there:

    When E = "NA", G = "NA"
    When D and E = "NA", G = "NA"

    but

    When E= "NA" and D = 1,2,3, G = #value!
    When D= "NA" and D = 1,2,3, G = FALSE

    I need for E to have "NA" result when
    1. Both D and E are "NA"
    2. Both D and E are "4"
    3. E is "4"

    I think that's it, maybe

  13. #13
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    Again, your explanation is not clear but I think I have what you wanted.

    =IF(AND(E71="NA",D71="NA"),"N/A",IF(AND(D71=4,E71=4),"N/A",IF(E71=4,"N/A",IF(OR(E71="NA",E71=""),IF(D71=1,"High",IF(D71=2,"Medium",IF(D71=3,"Low"))),IF(E71-D71<=0,"High",IF(E71-D71=1,"Medium",IF(E71-D71=2,"Low",IF(E71-D71>=3,"NA","Error"))))))))

  14. #14
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Great, still need a bit more.

    How do I add (I hope this makes sense!):

    IF(AND(D71="NA",E71="1,2,3,4"),"",(E71-D71=1,"HIGH",(E71-D71=2,"MEDIUM",(E71-D71=3,"LOW",(E71-D71=4,"NA")

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Try

    IF(AND(D71="NA",E71>=1,E7<=4),"",(E71-D71=1,"HIGH",(E71-D71=2,"MEDIUM",(E71-D71=3,"LOW",(E71-D71=4,"NA")

  16. #16
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    That one doesn't work; tried it by itself and in the larger formula. Any other ideas?

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    I suspect we (I am!) are confused now about what the conditions are:

    Perhaps produce a table with ALL possible value in D & E and the required results in G.

  18. #18
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    I'm sorry if I'm not being clear

    I can try to clarify, if it helps? Let me know.

    Isn't there an easier way than nesting so many IF functions to account for all the possible outcomes? I had something with many possible outcomes before, and was advised to simplify it with a CHOOSE function (which I'm not very familiar with). But, in this case, I'm not sure what other functions could be used.

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Conditions are: ????

    Both D and E have a number < 4 ... take difference (D-E) ==> High, Medium, Low

    D has a number, E is blank ... result ?

    D= NA, E has a number < 4 (?) ... result ?

    D = NA, E=4 ... result NA

    D=NA, E=NA ... result NA

    D=4, E=4 .. result NA

  20. #20
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Both D and E have a number "NA,1,2,3,4"

    1=high
    2=medium
    3=low

    The formula must work for Column D alone AND for E-D

    There will be no blanks in Column D

    D=NA, E=blank...result is NA
    D=NA, E=1...result is HIGH
    D=NA, E=2...result is MEDIUM
    D=NA, E=3...result is LOW
    D= NA, E=4....result is NA
    D=NA, E=NA...result is NA

    D=1, E=blank...result is HIGH
    D=1, E=1....result is HIGH
    D=1, E=2....result is MEDIUM
    D=1, E=3....result is LOW
    D=1, E =4....result is NA
    D=1, E=NA....result is HIGH

    D=2, E=blank....result is MEDIUM
    D=2, E=1....result is HIGH
    D=2, E=2....result is MEDIUM
    D=2, E=3.....result is LOW
    D=2, E=4....result is NA
    D=2, E=NA....result is HIGH

    D=3, E=blank...result is LOW
    D=3, E=1....result is HIGH
    D=3, E=2...result is MEDIUM
    D=3, E=3...result is LOW
    D=3, E=4...result is NA
    D=3, E=NA....result is HIGH

    D=4, E=blank...result is NA
    D=4, E=1...result is HIGH
    D=4, E=2....result is MEDIUM
    D=4, E=3....result is LOW
    D=4, E=4...result is NA
    D=4, E=NA...result is HIGH
    Last edited by minorcatherine1; 09-26-2016 at 04:06 PM. Reason: stupid mistakes, sorry!

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    To avoid complex IF statement(s) I have used a table:

    the table is a named range called "Grade_tbl" in columns E and F (of the attached)

    Column E is a concatenation of D and E values: note that Blank E is an empty cell i.e. not a space.

    Column F is the result

    H., I and J are to test the results: VLOOKUP in J2.

    =VLOOKUP(H2&$I$2,Grade_tbl,2,0)
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    That is a beautiful table

    How do I insert the table into the G71 cell? (use a named range, and insert the table as an object into a cell? I don't know how to do that )

    Or, do I have to take the table and stick it in a hidden range or sheet? (don't know how to do that either, if you can help?)

  23. #23
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Copy the table into any range of cells (could be separate sheet).

    Select the table

    Go to Formulas.... Define Name .... and set the name of the table to "Grade_tbl" (or change if required)


    In Column G:

    insert the VLOOKUP formula in first cell and fill down, changing H2 & I2 to Dx and Ex (x is start row).

    =VLOOKUP(H2&$I$2,Grade_tbl,2,0)

  24. #24
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    See the attached.

    I noted D and E had 0 (zeros) which I deleted (assumed to be "blanks")

    table in sheet "Tables"
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Ok, it's working when both D and E have values. It is not working when E is blank, and I'm not sure why it's giving a blank E a value of 0

    D E G

    3 0 #N/A
    3 0 #N/A
    1 0 #N/A
    1 2 MEDIUM
    1 3 LOW
    1 4 NA

  26. #26
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    You get 0 because the "Next Assessment" in (say) "Human Resources" is blank. You could change the table to reflect 0 rather than blank.

  27. #27
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    We just had some overlap of communication

    I'd prefer that E remain "blank" until the Next Assessment criteria are completed.

  28. #28
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    I have added another helper cell in column G of the scores tab. Have a look and see if that works. It just uses the formula =IF($E70=""," ",$E70). Then change the reference of John's formula to G instead of E.
    Attached Files Attached Files

  29. #29
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Quote Originally Posted by DannyJ View Post
    I have added another helper cell in column G of the scores tab. Have a look and see if that works. It just uses the formula =IF($E70=""," ",$E70). Then change the reference of John's formula to G instead of E.
    Thanks for the suggestion. I'd rather not add a column.

    I'm wondering why I can't add what is needed to the VLOOKUP formula, if that's what it takes to get rid of the 0 when any cell in D or E is blank?

  30. #30
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    What harm does adding a column do? It can be hidden anyway.

  31. #31
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    What harm does adding a column do? It can be hidden anyway.

  32. #32
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Stuck on correct function(s) & formula!

    What harm does adding a column do? Just hide it.

  33. #33
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    I'd prefer that E remain "blank" until the Next Assessment criteria are completed.
    Perhaps use


    =IF('MANAGEMENT RESOURCES'!H11=0,"",'MANAGEMENT RESOURCES'!H11)

    to change zeros to "blank"

  34. #34
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    That did the trick! Thank you!!

    I think I'm almost done

  35. #35
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Just trying to keep it super clean; I'm presenting this to international partners

  36. #36
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Thanks so much for your help with the previous formula and table!

    I've moved onto the next tabs of this workbook, and I *think* I only have one question, if you'd take a look at it?

    I can start a new thread, if you think that's better

    I will need to use this formula for all of the Action Plan Tabs, adjusting Rows and Columns as appropriate for the content to be imported from the other sheets.

    Question is:

    How do I add the H11 cell to this formula, with the exact same conditions. Do I need another table for this section?

    =IF('VISION AND MISSION'!G11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!G11=2,'VISION AND MISSION'!D11,IF('VISION AND MISSION'!G11=3,'VISION AND MISSION'!E11,"NA")))



    The result I'm seeking is:

    If 'VISION AND MISSION'!G11=NA and 'VISION AND MISSION'!H11=blank ....result is NA
    If 'VISION AND MISSION'!G11=NA and 'VISION AND MISSION'!H11=1 ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=NA and 'VISION AND MISSION'!H11=2 ...result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=NA and 'VISION AND MISSION'!H11=3 ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=NA and 'VISION AND MISSION'!H11=4 ....result is NA

    If 'VISION AND MISSION'!G11=1 and 'VISION AND MISSION'!H11=blank ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=2 and 'VISION AND MISSION'!H11=blank ....result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=3 and 'VISION AND MISSION'!H11=blank ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=4 and 'VISION AND MISSION'!H11=blank ....result is NA


    If 'VISION AND MISSION'!G11=1 and 'VISION AND MISSION'!H11=1 ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=1 and 'VISION AND MISSION'!H11=2 ....result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=1 and 'VISION AND MISSION'!H11=3 ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=1 and 'VISION AND MISSION'!H11=4 ....result is NA


    If 'VISION AND MISSION'!G11=2 and 'VISION AND MISSION'!H11=1 ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=2 and 'VISION AND MISSION'!H11=2 ....result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=2 and 'VISION AND MISSION'!H11=3 ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=2 and 'VISION AND MISSION'!H11=4 ....result is NA


    If 'VISION AND MISSION'!G11=3 and 'VISION AND MISSION'!H11=1 ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=3 and 'VISION AND MISSION'!H11=2 ....result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=3 and 'VISION AND MISSION'!H11=3 ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=3 and 'VISION AND MISSION'!H11=4 ....result is NA

    If 'VISION AND MISSION'!G11=4 and 'VISION AND MISSION'!H11=1 ....result is 'VISION AND MISSION'!C11
    If 'VISION AND MISSION'!G11=4 and 'VISION AND MISSION'!H11=2 ....result is 'VISION AND MISSION'!D11
    If 'VISION AND MISSION'!G11=4 and 'VISION AND MISSION'!H11=3 ....result is 'VISION AND MISSION'!E11
    If 'VISION AND MISSION'!G11=4 and 'VISION AND MISSION'!H11=4 ....result is NA
    Last edited by minorcatherine1; 09-27-2016 at 08:58 AM. Reason: Not sure if I should start another thread

  37. #37
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    I'll have to think about this: a table would be preferable but need to consider we are extracting cell value not fixed values

    Try

    =IF(OR(AND( 'VISION AND MISSION'!H11="",'VISION AND MISSION'!G11="NA"),AND('VISION AND MISSION'!H11="",'VISION AND MISSION'!G11=4), 'VISION AND MISSION'!H11=4),"NA",OFFSET('VISION AND MISSION'!$B11,,'VISION AND MISSION'!H11))

  38. #38
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    =IF(OR(AND( 'VISION AND MISSION'!H11="",'VISION AND MISSION'!G11="NA"),AND('VISION AND MISSION'!H11="",'VISION AND MISSION'!G11=4), 'VISION AND MISSION'!H11=4),"NA",OFFSET('VISION AND MISSION'!$C11,,'VISION AND MISSION'!H11))


    Ok, I adjusted for the right criteria cell (C11): this formula works partially.

    I'm heading home from work, and will detail it down in about an hour.

    Since the original formula for column G worked so well, I was hoping it would be relatively easy to duplicate that success for H, but I didn't consider all the possible data combinations until we worked on the last tab

  39. #39
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    With C11 you will get D,E and F from the offsets not C, D, E.

  40. #40
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    This formula really isn't working in many ways:

    1. I need 'Action Plan' to auto populate the criteria from 'Vision and Mission', based on the matching score value of the criteria 'Vision and Mission' G 11 (1,2,3) in 'Vision and Mission' C,D,E

    2. I need it to do this when only the Baseline Assessment G is filled out, but Next Assessment H is blank

    3. I need 'Action Plan' auto populated criteria to change to same rule for H (next assessment) when H is filled out, overriding the previous result of G alone.

    This starting formula worked perfect, for Baseline Assessment G:

    =IF('VISION AND MISSION'!G11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!G11=2,'VISION AND MISSION'!D11, IF('VISION AND MISSION'!G11=3,'VISION AND MISSION'!E11,"NA")))


    I need exactly the same thing to happen for Next Assessment H, when both G and H have values, so that H overrides G

    Am I making any sense? :D Must have more coffee!

  41. #41
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Getting very complex!!!

  42. #42
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    It's easier to just bring the criteria in based on the 'SCORES AND ASSIGNED PRIORITIES' tab, instead of matching it to the other tabs.

    I'm going to play with this now, and see if I can get it working for all possible conditions...easier I think.




    =IF('SCORES AND ASSIGNED PRIORITIES '!G29="HIGH",'VISION AND MISSION'!C11)

  43. #43
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Quote Originally Posted by JohnTopley View Post
    Getting very complex!!!
    Indeed....

    which indicates there is a more simple way :D

  44. #44
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Using the other criteria, I guess it is something along the lines of (untested!) ...



    =IF('VISION AND MISSION'!H11="",IF('VISION AND MISSION'!G11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!G11=2,'VISION AND MISSION'!D11, IF('VISION AND MISSION'!G11=3,'VISION AND MISSION'!E11,"NA"))),IF('VISION AND MISSION'!H11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!H11=2,'VISION AND MISSION'!D11, IF('VISION AND MISSION'!H11=3,'VISION AND MISSION'!E11,"NA")))

    This could be shortened by using the OFFSET function.

  45. #45
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Well, this isn't very fun, LOL

  46. #46
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    Quote Originally Posted by JohnTopley View Post
    Using the other criteria, I guess it is something along the lines of (untested!) ...



    =IF('VISION AND MISSION'!H11="",IF('VISION AND MISSION'!G11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!G11=2,'VISION AND MISSION'!D11, IF('VISION AND MISSION'!G11=3,'VISION AND MISSION'!E11,"NA"))),IF('VISION AND MISSION'!H11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!H11=2,'VISION AND MISSION'!D11, IF('VISION AND MISSION'!H11=3,'VISION AND MISSION'!E11,"NA")))

    This could be shortened by using the OFFSET function.
    Tested it and I think this did it. Going to work the rest of the Action Plan tabs now, and see if it holds

    =IF('VISION AND MISSION'!H11="",IF('VISION AND MISSION'!G11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!G11=2,'VISION AND MISSION'!D11,IF('VISION AND MISSION'!G11=3,'VISION AND MISSION'!E11,"NA"))),IF('VISION AND MISSION'!H11=1,'VISION AND MISSION'!C11,IF('VISION AND MISSION'!H11=2,'VISION AND MISSION'!D11,IF('VISION AND MISSION'!H11=3,'VISION AND MISSION'!E11,"NA"))))

  47. #47
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: Stuck on correct function(s) & formula!

    I'm all ears on the OFFSET function....completely unfamiliar with it, but down for learning!

  48. #48
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Stuck on correct function(s) & formula!

    Completely untested (IFs might need adjusting to get "NA" correct):

    Checks if G11 is number <=3, then use Offset from B11 so if G11=1, it will get C11: and same again for H11


    =IF(AND(ISNUMBER('VISION AND MISSION'!G11),'VISION AND MISSION'!G11<=3),OFFSET('VISION AND MISSION'!$B11,,'VISION AND MISSION'!G11)),"NA"))),IF(AND(ISNUMBER('VISION AND MISSION'!H11),'VISION AND MISSION'!H11<=3),OFFSET('VISION AND MISSION'!$B11,,'VISION AND MISSION'!H11))
    ,"NA")))


    Going out for a while!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Creating a search function. Stuck on formula.
    By Teblol in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-24-2014, 12:54 PM
  2. Replies: 2
    Last Post: 05-30-2013, 06:08 PM
  3. Indirect function formula not correct
    By trobie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2013, 08:30 AM
  4. Stuck at work and stuck on a count function
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 12:47 AM
  5. [SOLVED] VLOOKUP Issue - formula correct in function box but not in spreadsheet
    By jlowes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2012, 12:55 PM
  6. function to check names within formula are correct
    By Macatk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2009, 08:59 PM
  7. Correct VBA syntax for cell function formula
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2005, 01:05 AM

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