+ Reply to Thread
Results 1 to 5 of 5

COUNTA probs / dynamic formulas / complex(ish) SUM formula

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    28

    COUNTA probs / dynamic formulas / complex(ish) SUM formula

    Hey peeps a few quick questions that the text books don’t seem to have the answer to!

    (Have included a basic example of my workbook attached)

    I have a table which has some formulas in it, every week I will paste new data under it, sometimes there will more rows, sometimes less.

    • I have the formula =COUNTA(DATA) but when I paste data in it includes the blank fields as data. I have to individually select the ‘blank’ cells and press delete for it to recognize these as blanks. I have tried ‘pasting special’ as ‘values’ and have checked leave blank cells but it still considers them values

    • Is it possible to have a SUM formula that only counts instances where there is a letter in another column? (in the example the formula should return 70)

    • Lastly when I paste the data in for the ‘Sum of Value’ formula I have to change the data range manually, can this formula be set up to automatically select the data range that is pasted in?

    Hopefully I made sense! Any help is, as always, greatly appreciated

    Adele x
    Attached Files Attached Files
    Last edited by adeleex; 06-06-2011 at 02:15 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: COUNTA probs / dynamic formulas / complex(ish) SUM formula

    Hello, try this,

    =SUMIF(A7:A65536,">=A",B7:B65536)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

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

    Re: COUNTA probs / dynamic formulas / complex(ish) SUM formula

    This doesn't differentiate between numbers, letters or words but assuming you will only have letters or nothing

    =SUMIF($A$7:$A$250, "<> 0",$B$7:$B$250)
    Does that work for you?

    EDIT: Seems to take all values, not sure why. Use Haseeb's.
    Last edited by ChemistB; 06-06-2011 at 02:13 PM.
    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

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: COUNTA probs / dynamic formulas / complex(ish) SUM formula

    Try this

    Create two dynamic named ranges

    Letters
    Refers to :=
    Please Login or Register  to view this content.

    Values
    Refers to :=
    Please Login or Register  to view this content.

    In B1
    Please Login or Register  to view this content.

    in B2
    Please Login or Register  to view this content.

    In B3
    Please Login or Register  to view this content.

    Hope this helps.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    08-18-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: COUNTA probs / dynamic formulas / complex(ish) SUM formula

    Haseeb, tried that, works a treat! I assume A65536 will always ensure i include anything that is pasted in too, thanks muchly!!

    ChemistB, cheers too!

+ 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