+ Reply to Thread
Results 1 to 8 of 8

Formula requiring three actions

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Formula requiring three actions

    I need a formula that requires three things to be present before searching a database and returning a numeric value. I'm running Excel 2003.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Formula requiring three actions

    You can nest up to seven if statements in one formula.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Formula requiring three actions

    Yeah sounds like an IF/AND thingy.
    =IF(AND(condition 1,condition2,condition3),Result if true,Result if false)
    Can't say much else without knowing what the conditions are or how you want the information accessed and how it's organized.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Formula requiring three actions

    Hi rraymond and welcome to the forum,

    I like Advanced Filters to do this kind of problem. It all depends on what your data looks like and you didn't supply a sample.

    Find the attached where I've guessed at what you are looking for.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    05-27-2011
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula requiring three actions

    Here's a sample of my data file. Sorry I didn't think of it sooner.

    The first tab is my report. The yellow highlights the cells where I want this formula to go. The other two are my data sets.

    Things to consider:

    1 - The dealer in B2 will change month to month, so it needs to be linked to a different source file with a larger geography (the CSA tab)
    2 - The formulas in I2:L5 need to "float" and vary based upon whatever dealer gets popped in to B2.
    3 - I was trying to link three variables in which - on the April tab - require columns C, D, and E to be present, link with the value in B2 (which in this case is at F6 on April tab), and then return the value in I6 - 68.

    Any help would be great.
    Attached Files Attached Files

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Formula requiring three actions

    Hi,

    Find the attached where your data is easily displayed using a Pivot Table. I think you should study Pivots a while and see if they can't do what you are wanting and with much more ease.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-27-2011
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula requiring three actions

    Marvin, thanks for the help. What I sent was just a detail from a 5-page report, so a pivot table won't work in this case unfortunately. What I can't understand in the file you sent was why the formula generating the "43" works for Northeast, but when I key in Northwest, I get a FALSE. It seems to be taking the first instance of two variables but not matching all three. Do you see what I mean?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Formula requiring three actions

    I've looked at this for about a half hour and can't figure why it leaves out some column heads. It has to be bad data. Try to convert your data ot values only.

    Sometimes where data comes from a mainframe they put "funny" characters in the middle that don't show. I'm wondering if this might be the case with your data.

    I'm clueless.

+ 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