+ Reply to Thread
Results 1 to 7 of 7

#Value! due to formatting issue

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    #Value! due to formatting issue

    All, Let me start of by saying thanks for the help.

    I want to write what I thought was a simple formula.
    If column A has text "XXXX" then look in range F9:M384 and count or sum the number of times you see text "XXXX"

    I've tried several different formulas but the closest I've gotten is returning a #value! which I thought was just a formatting issue.

    Here are some example formulas I've written but can't get to work... any suggestions?

    =SUMIF('Dashboard'!A9:M384,('Dashboard'!A:A="P1"),('Dashboard'!F9:M384="Software")) This formula fails
    =COUNTIFS('Dashboard'!$F9:$M384,"Controls",'Dashboard'!A9:A384, "=""P1") This returns a #Value!

    Any ideas?
    Maybe an IF Then statement??

    Thanks again for your time.
    Matt
    Last edited by uhlabomber; 07-16-2013 at 02:33 PM.

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: What I thought was an easy formula

    Try changing "=""P1" into P1 in countifs
    Please consider adding a * if I helped

  3. #3
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Re: What I thought was an easy formula

    This should do you:
    Please Login or Register  to view this content.
    If I've helped or inspired, please click the star.

  4. #4
    Registered User
    Join Date
    04-08-2013
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: What I thought was an easy formula

    As in this?
    =COUNTIFS('Dashboard'!$F9:$M384,"Controls",'Dashboard'!A9:A384,P1)
    I still get a #value!
    I then thought maybe my range was wrong and I needed to include column A in it.. so I tried this:
    =COUNTIFS('Dashboard'!$A9:$M384,"Controls",'Dashboard'!A9:A384,P1)
    But still get a #Value!

    Maybe countifs doesn't like text or general format of cells?

  5. #5
    Registered User
    Join Date
    04-08-2013
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: What I thought was an easy formula

    =SUMPRODUCT((Dashboard!$F9:$M384="Controls")*(Dashboard!A9:A384="P1"))

    This formula ^^^^^ does work... man you guys are quick and awesome.

    I have a different formula within the same spreadsheet that is troubling me as well... Do I need to start a new thread?

  6. #6
    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: What I thought was an easy formula

    The ranges must be the same size
    e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If there is more than one column in the ranges, then it will only count where "Controls" and "P1" are in the same position
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The arrays can be in any position on the sheet, but must have the same number of rows and columns.

    What are you trying to do?
    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.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: What I thought was an easy formula

    uhlabomber,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. formatting issue
    By ashw1984 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2009, 05:32 AM
  2. Formatting issue?
    By redlion3 in forum Excel General
    Replies: 7
    Last Post: 07-31-2007, 05:09 PM
  3. Formatting issue ???
    By yarrakid in forum Excel General
    Replies: 0
    Last Post: 06-13-2006, 04:31 AM
  4. Formatting Issue
    By wayliff in forum Excel General
    Replies: 7
    Last Post: 04-13-2006, 10:47 AM
  5. Formatting issue
    By adin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-22-2005, 02:06 PM

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