Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: Advanced function using multiple Excel files.

  1. #1

    Question Advanced function using multiple Excel files.



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello,

    Total Excel newbie here. I've figured out some simple stuff, but I'm running into difficulty with more advanced functions.

    Add the total number of cells in the 'POSTAL' column that begin with 'M' within the 'SUBSCR' file (it's a separate Excel file, Sheet1).

    Regards,
    Yoshi

  2. #2
    Hi yoshimura

    Try the COUNTIF function. For example if you had a series of data in A1:A30: =COUNTIF(A1:A30,"M*")

    Kevin

  3. #3
    Hello Kevin,

    That helped!

    In the COUNTIF function example (=COUNTIF(A1:A30,"M*")), I would like to know how to include and exclude.

    How can I include Cells that begin with "M*" and "L*"?

    With the above conditions true (include cells that begin with "M*" and "L*"), what if I want to exclude cells?
    Here are two separate scenarios:
    1) Exclude cells containing "L8*"
    2) Exclude all other letters that are not "M* or L*"


    Eric

  4. #4
    Hi yoshimura

    =SUM(COUNTIF(A1:A30,{"M*","L*"}) array formula. CTRL + SHIFT + ENTER. Not just enter.

  5. #5
    Hello Kevin,

    The =SUM(COUNTIF) array forumla was enough for me to do all the calculations.

    There is just one problem: When counting postal codes "P*", it includes the header "POSTAL".
    What can I do to solve this?

  6. #6
    Try

    =SUMPRODUCT(COUNTIF(A1:A30,{"M*","L*","P*"})-COUNTIF(A1:A30,"POSTAL")

  7. #7
    Hmmm, not working yet.

    I have to specify that it's taking the range from the sheet "SUBSCR".

    I tried:

    =SUMPRODUCT(COUNTIF(SUBSCR!A:A,{"M*","L*","P*"})-COUNTIF(SUBSCR!,"POSTAL")
    and
    =SUMPRODUCT(COUNTIF(SUBSCR!A:A,{"M*","L*","P*"})-COUNTIF(SUBSCR!,A:A,{"POSTAL"})

  8. #8
    Try

    =SUMPRODUCT(COUNTIF(SUBSCR,{"M*","L*","P*"})-COUNTIF(SUBSCR,"POSTAL")

  9. #9
    This is what it says in the cell:
    #NAME?

  10. #10
    I misread what SUBSCR was

    =SUMPRODUCT(COUNTIF(SUBSCR!A1:A30,{"M*","L*","P*"})-COUNTIF(SUBSCR!A1:A30,"POSTAL")

Page 1 of 2 1 2 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •