+ Reply to Thread
Results 1 to 4 of 4

Wrong Data Type

  1. #1
    Registered User
    Join Date
    10-17-2015
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    28

    Wrong Data Type

    Help please. I am stuck on this one, says wrong data type. =SUMIF(Y48,"NO",P51:T51)*(IF(Y48,"YES",50)) I am sure its simple but has me stumped. I want it to add the values in P51:T51 if Y48 says NO and if Y48 says YES then need the value to be 50.

  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,464

    Re: Wrong Data Type

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    assuming Y48 can only be yes or no.

    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
    10-17-2015
    Location
    Oregon
    MS-Off Ver
    2016
    Posts
    28

    Re: Wrong Data Type

    Thank you!!!!

  4. #4
    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,464

    Re: Wrong Data Type

    You're welcome.




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] Wrong data type?
    By oceanside in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2018, 02:22 AM
  2. [SOLVED] Wrong data type error message
    By Ian Jemmett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2014, 05:13 AM
  3. Value used in formula of wrong data type
    By masry6683 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2014, 10:55 AM
  4. wrong data type #VALUE! error
    By osteolass in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 07:02 PM
  5. Wrong decimal value from Single data type
    By natefarm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2011, 03:56 PM
  6. Formula returns wrong data type
    By mbrown89 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 01-30-2010, 12:36 PM
  7. Importing .csv file in vba using ADO - wrong data type
    By Andr7ej in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2009, 08:01 AM

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