+ Reply to Thread
Results 1 to 10 of 10

IF(AND) formula help

  1. #1
    Registered User
    Join Date
    11-19-2008
    Location
    Perth, Scotland
    Posts
    13

    IF(AND) formula help

    Hi everyone,

    Really struggling to put this formula together - and I'll need to replicate it for a number of fields.....hopefully someone can assist

    What I'm looking to say is:
    "If the value in the D column is equal to 1 or 2 and the value in the B column (in the same row) is also equal to 1 or 2 then return 5. If the D column is equal to B column and B column is more than 2, then return 1 (again, same row)"

    Needless to say there will be multiples (32 separate results infact) and I'd like the cell/formula to keep a running total...

    Hopefully what I'm asking makes sense?

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: IF(AND) formula help

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Should do it. Not sure what you mean by the running total. You also haven't said what you want to happen if the conditions you specified are not met, so I had it return a blank cell as a response.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Registered User
    Join Date
    11-19-2008
    Location
    Perth, Scotland
    Posts
    13

    Re: IF(AND) formula help

    Hi gak67, it doesn't appear to work unfortunately - although I'm not sure I've really explained what I'm looking for properly.

    I'm looking for a single field to hold the formula and compile a running total. What I have is 4 rows (with a B column and a D column value) that have the ability to return 5, 5, 1 & 1 (assuming all are correct) that I want to display as a total in the 5th row

    Does that even make sense in the slightest? I'm really struggling to explain...

  4. #4
    Registered User
    Join Date
    11-19-2008
    Location
    Perth, Scotland
    Posts
    13

    Re: IF(AND) formula help

    Independently of each other also, so I'm not trying to say "if one of the B fields match one of the D fields then return X", I'm only comparing D1 with B1, D2 with B2 etc.

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: IF(AND) formula help

    If you upload a sample file we'll get a better idea of what you want. Click on Go Advanced (bottom right) then on the paperclip.

  6. #6
    Registered User
    Join Date
    11-19-2008
    Location
    Perth, Scotland
    Posts
    13

    Re: IF(AND) formula help

    example file.xls

    Hopefully that makes sense?

    It's for an office world cup pool - group stages, where our criteria is
    If the team progresses (ie finishes 1st or 2nd), then you get 5 points
    For the 3rd and 4th placed, you have to have the placing correct and it's worth 1 point.

    Obviously there are 8 groups and there will be multiple people entering, so I'm trying to establish a formula that can be replicated

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: IF(AND) formula help

    I see what you are trying to do. The formula I gave you (with some range modifications) will give you the result for each participant if you used a helper column, but I can understand that you don't want to use a helper column for each participant. I think you need a SUMPRODUCT or an array formula. I know my limitations, and I can't really help with those (although it's something I want to learn about). Hopefully somebody else here picks this up.

  8. #8
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: IF(AND) formula help

    Ok, I've done some research and I can get it working for you, but it's not very tidy.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: IF(AND) formula help

    Tidied up a bit:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You could put that at the top of each pool to get a total for each pool and then add those for an overall total, or if you just want an overall total, extend the range as follows:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by gak67; 06-04-2014 at 05:54 PM.

  10. #10
    Registered User
    Join Date
    11-19-2008
    Location
    Perth, Scotland
    Posts
    13

    Re: IF(AND) formula help

    Thanks gak! Looks like that does exactly what I was looking for! Appreciated!

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