+ Reply to Thread
Results 1 to 5 of 5

Nested Formulae IF->AND

Hybrid View

  1. #1
    Registered User
    Join Date
    06-08-2010
    Location
    Wellingborough, England
    MS-Off Ver
    Excel 2000
    Posts
    2

    Nested Formulae IF->AND

    Hi

    I am trying to produce a series of reports based on the results from a group of gamers but it goes a bit beyond my very basic knowledge of spreadsheeting.

    I have used array formulae to extract results from the full list which goes something like this;

    {=SUM(IF(E8:E57="player1",F8:F57))}

    I will add columns to make calculations based on the product which need to ignore columns in which no result has been posted. As a zero score is possible in the game I am trying to add a condition which will return a non-numerical value or better still a blank when False. I think ‘=IF((AND))’ would work but I can’t get the syntax sorted. Is this because it can’t be nested with an array formula?

    (It maybe that a VLOOKUP option would work better but I’ve tried & failed to grasp how to make that work and as this may ultimately involve collating results from several worksheets I’m even less sure how VLOOKUP might work there.The SUM option works because each player can only post one result in any column - but I admit it’s ugly.)

    NB. I'm running Office 2000
    Attached Files Attached Files
    Last edited by ZuttySingleton; 10-09-2010 at 08:39 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,943

    Re: Nested Formulae IF->AND

    You kind of did this the hard way. See attached for a simpler example. For your first formula, a simpler approach would be to put this formula in B8 and copy down:

    =VLOOKUP(A8,D:E,2,FALSE)

    Your formula requires you to type each player's name into the formula, which has obvious drawbacks.

    This solution returns #N/A when the name is not found, which can be tested for in a formula like this:

    =IF(ISNA(B8),"",<some formula goes here>)

    I don't follow what you're ultimately trying to do so I can't offer specific help on how to do it.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-18-2010
    Location
    Kalamazoo, MI
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Nested Formulae IF->AND

    =SUMIF($D$8:$D$57,A8,$E$8:$E$57)

    Is this what you are trying to do? SUMIF might help you out. I'm not sure exactly what you were asking. Could make a sample of what your expected results would be?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,943

    Re: Nested Formulae IF->AND

    Yes, I started out with

    =SUMIF(D:D,A8,E:E)

    but then I noticed that the OP said each name appeared only once, so VLOOKUP works. However, SUMIF will give 0 if the name is not found, which might be a little easier to deal with.

  5. #5
    Registered User
    Join Date
    06-08-2010
    Location
    Wellingborough, England
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: Nested Formulae IF->AND

    @6StringJazzer

    I felt VLOOKUP might be a simpler solution but struggled to understand the online tutorials (slightly embarrassed tbh. I re-read them with your formula in mind and it's not exactly difficult). Together with ISNA it produced exactly what I wanted.

    Thanks for your help guys.

+ 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