+ Reply to Thread
Results 1 to 14 of 14

simplyfuing if formula

  1. #1
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    simplyfuing if formula

    Hello Team,

    I am looking for a simplified formula using IF.

    I have attached the excel where I would need to calculate the points using source calculation mentioned in source calculation table.
    I'm writing a formula but it is getting snaky long.

    your help would be appreciated.

    Many thanks!
    D.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: simplyfuing if formula

    In D2 and filled down, try

    =SUMIFS($R$14:$R$22,$P$14:$P$22,B2,$Q$14:$Q$22,C2)

  3. #3
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: simplyfuing if formula

    Thank you Sir,

    Source calculation is only for reference.
    unfortunately I can not use source cells in the formula.

    I will need to use IF chain as I will need to put it in the middle of the other formula I have.

    Many thanks!

    BR,
    D.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: simplyfuing if formula

    Here's one option:

    =IF(OR(B2&C2={"not okn/a","n/anot ok"}),0,SUM(LOOKUP(B2:C2,{"n/a","not ok","ok"},{0.5,0,0.5}))) Ctrl Shift Enter

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: simplyfuing if formula

    unfortunately I can not use source cells in the formula.
    Why Not?

    It would be very advantageous to use the table written in a range of cells.
    It's much easier to maintain that table, than a hard coded formula.

    You can put it on another sheet, and hide that sheet.

  6. #6
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: simplyfuing if formula

    Hello my friend, it does not give desired output. it gives 1 point for all the employees which is incorrect.

    thanks for your time!

  7. #7
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: simplyfuing if formula

    I get your point.... have used that way before...

    But in this case, I am not allowed to change the structure of the Excel....:-)...
    may sound weird... but it is what it is.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: simplyfuing if formula

    I beg to differ. See attached workbook.

    The values produced from the formulas in column D match the expected output from column R exactly.
    Attached Files Attached Files

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: simplyfuing if formula

    I am not allowed to change the structure of the Excel
    That's when I say to the boss, 'you came to me for help with this task, this is the best method in my expert opinion'

    Anyway, if you must. Here's a brute force method.
    Assuming the 2 cells both have only the 3 possible values.

    =IF(B2="ok",IF(C2="not ok",0.5,1),IF(B2="n/a",IF(C2="not ok",0,1),IF(C2="ok",0.5,0)))

  10. #10
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: simplyfuing if formula

    Appologies, It has to be something wrong with my Excel... if I say CNTRL D, it only copies the top number... thank you so much..

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: simplyfuing if formula

    Calculation is set to manual (on the formulas tab) in the book you shared.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: simplyfuing if formula

    You're welcome. After seeing Jonmo1's solution, I would use that one over mine.

    If that solved your question, please mark this thread as SOLVED.

  13. #13
    Forum Contributor
    Join Date
    05-18-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    126

    Re: simplyfuing if formula

    Many thanks my friend.... very kind of you..... sums up my day quite nicely...
    I have never been disappointed by this forum. kudos....

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: simplyfuing if formula

    Thank you for the rep!

+ 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. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  2. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  3. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  4. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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