+ Reply to Thread
Results 1 to 6 of 6

Thread: One formula for all these ifs, how can I do it?

  1. #1
    Registered User
    Join Date
    10-02-2006
    Posts
    12

    One formula for all these ifs, how can I do it?

    Hi there,

    The users will be recording into the excel sheet, under column 'Input criteria' either a 0(i.e.false) or 1(i.e.true)

    There are competency statements [D3:15] which are within a 'level' [C3:15] (these levels need to influence the formula)

    I need to create a formula in cells G4 and G15, which results with one of the following score, either 1, 2, 3 or 4.

    The results need to be worked out with the following criteria:

    If "The range E3:E15 = 0" [score = 1]

    If: C3:15 = 2 AND E3:15 = 1 &
    where C3:15 = 3 AND >50% of E3:15 = 1 [score = 2]

    If: C3:15 = 2 AND E3:15 = 1 &
    Where C3:15 = 3 AND >50% of E3:15 = 1 &
    Where C3:15 = 4 AND >50% of E3:15 = 1 [Score = 3]

    If C3:15 = 2 AND E3:15 = 1 &
    where C3:15 = 3 AND E3:15 = 1 &
    Where C3:15 = 4 AND if >50% of E3:15 = 1 [Score = 4]

    I need one formula that could be placed in either G4 and G15 that would work for all the above criteria.

    How would I go about doing it?

    I hope someone can help me, many thanks in advanced.

    Ravi
    Attached Files Attached Files
    Last edited by VBA Noob; 04-17-2009 at 04:09 PM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: One formula for all these ifs, how can I do it?

    Are you talking about SUMS?

    =IF(SUM(E3:E15)=0,1,moretocome....


    And for 2...more sums? If I SUM C4:C15 the answer will be far more than 4.
    Do you mean averages? AVERAGE(C4:C14)?

    You original question and sheet really don't fully explain what you mean when evaluating the ranges C and E.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-02-2006
    Posts
    12

    Re: One formula for all these ifs, how can I do it?

    Hi JBeaucaire

    I am not sure if SUM will be the right solution, as I am not looking to add any of the range up.

    I am looking for the score of 1, 2, 3 or 4 to be generated, depending on the relevant criteria.

    Any ideas please?

    Ravi

  4. #4
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010

    Re: One formula for all these ifs, how can I do it?

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Valued Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    256

    Re: One formula for all these ifs, how can I do it?

    Hi Ravi,

    You will have a score (either 1, 2, 3 or 4) for all rows from 3 to 15 as per your conditions which would be applicable for every row.

    So, how would the final score be calculated which has to be put in cells G4 and G15? Would it be the arithmetic mean or what? It is not very clear.

    --Karan--

  6. #6
    Registered User
    Join Date
    10-02-2006
    Posts
    12

    Re: One formula for all these ifs, how can I do it?

    hi Karan,

    So sorry, I realised it wasn't very clear...

    So I've made amendments to my spreadsheet and requirement, and I have posted this separately...

    Are you able to find it and advise? http://www.excelforum.com/excel-gene...the-cells.html

    I hope you can help.

    Ravi

+ 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.2.0