+ Reply to Thread
Results 1 to 14 of 14

Using ISNA, IF, AND, OR statements

  1. #1
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Using ISNA, IF, AND, OR statements

    Hello

    I've made a formula to see if an account was added, stayed the same or has been deleted. In this case I started with a tab of only October 2014 Account, made another one for just September 2014 and another one for November 2014. Currently, I am only able to make a formula to tell me "Which accounts in this October 2015 tabs were from September and which were added since September". I want to incorporate in the below formula, which accounts from October 2015 are not in November 2014 as "Accounts Deleted" (I've already made a formula for the October accounts that are not in Nov). COuld someone please help me!?


    =IF(ISNA(VLOOKUP(G2,SSBSEP2005ALL_NO_ERROR!$G$2:$G$132648,1,FALSE)),"Account Added Since Sept","Sept Accounts")

    Thanks,

    Hendrix

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Using ISNA, IF, AND, OR statements

    It would probably help to see a sample workbook. But, from what you have described, you are making a rod for your own back by having separate worksheets for each month. I would recommend that you put all your data in one worksheet and add a column for the join date.

    Otherwise it will be extremely difficult to analyse your data.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Using ISNA, IF, AND, OR statements

    I've added a file for your view. In the October 2015 tab columns "AO" mentions the "Account Added Since Sept" or "Sept Accounts". I wanted to incorporate Accounts in November not in October as "Deleted Accounts". The accounts info is on Column "G" in the November 2005 tab.

    Thanks,

    Hendrix P
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Using ISNA, IF, AND, OR statements

    Someone please help

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Using ISNA, IF, AND, OR statements

    Working on it ... give me time, I have other distractions

  6. #6
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Using ISNA, IF, AND, OR statements

    Thank you!!!!!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Using ISNA, IF, AND, OR statements

    See the attached updated workbook. It uses COUNTIF rather than VLOOKUP as it simplifies the formula because you don't need to return anything. That is modified to use INDIRECT and picks up the relevant sheet from the column header.

    Note that the September tab has been changed from Sept 2005 to Sep 2005 for consistency. Ideally, the tab would also include the year, which would make the formula a little shorter and maybe cater for the end of year scenario.

    The middle sheet has more columns and different text in the formula so it's not just a case of copying the formula across ... although it IS for September and November.

    Anyway, take a look and see if it helps.

    Regards, TMS
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using ISNA, IF, AND, OR statements

    Quote Originally Posted by TMS
    Making a rod for your own back
    Never heard that one, must be British. Is that like
    "Between a rock and a hard place" or more like
    "Painting yourself into a corner"
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Using ISNA, IF, AND, OR statements

    Not quite: more like causing yourself unnecessary pain.

    http://dictionary.cambridge.org/dict...-your-own-back

    If you make a rod for your own back, you act in a way that creates more problems for yourself in the future:
    By giving in to the terrorists' demands, the government will simply be making a rod for its own back.

    Possibly linked to phrases like: 'spare the rod and spoil the child' and 'rule with a rod of iron'


    Regards, TMS

  10. #10
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Using ISNA, IF, AND, OR statements

    TMS thanks so much for your help. However I really do not understand that formula and how to construct it to my task. Basically, what Im trying to do is make a final pivot table that can break down the data like this:

    # of October Accounts:
    # of October Accounts Deleted (Not in Nov):
    # of October Accounts Added (from September):

    Your formula looks good, but it is not helping with this task. I need a column to specify either 3 of the above categories. Please let me know if you can help. I've attached another sheet for your view.

    Million Thanks!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Using ISNA, IF, AND, OR statements

    Thanks ChemistB, would you try to help since you are online? I've posted something just recently..

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using ISNA, IF, AND, OR statements

    Maybe this will work for you.
    I consolidated a listing of all the accounts with their months on Sheet1 then created a Pivot Table out of the results. The Pivot Table lists the accounts in order and indicates the month(s) that they belong to. There is also a slicer that allows the selection of a month or months and all accounts for the month or months selected will be produced.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using ISNA, IF, AND, OR statements

    Here's my attempt at a pivot table. I used the pivot table wizard to pull data from all three sheets, just choosing Account and Lst_Name. In the table, you can see how many times the account occurs (1,2, or 3) but no easy way to determine where it occurs or doesn't occur, not without doing some lookups on each sheet.
    Attached Files Attached Files

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using ISNA, IF, AND, OR statements

    For what it's worth, here is your workbook with each worksheet indicating if the account numbers appear on the other two worksheets. Named ranges are used for the accounts on each worksheet to make the calculation easier to write and understand.

    Example formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. IF Statement Comparing 2 ISNA Statements
    By scubab in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-10-2014, 09:52 PM
  2. Nested IF(ISNA) Statements - Multiple Sheets
    By Cher2332 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2013, 12:47 PM
  3. Adding ISNA to long nested IF statements with vlookups
    By vgately99 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-07-2013, 02:59 PM
  4. using AND with IF(ISNA...
    By ronmaltase in forum Excel General
    Replies: 2
    Last Post: 06-11-2012, 08:57 PM
  5. Excel 2007 : Isna
    By Brittney10 in forum Excel General
    Replies: 2
    Last Post: 07-18-2010, 01:43 PM
  6. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  7. [SOLVED] ISNA
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  8. ISNA
    By Lomax in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2005, 01:05 PM

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.6.0 RC 1