+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : using apostrophes in =IF( formula

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    10

    using apostrophes in =IF( formula

    Maybe I am not using the IF function right, but its a fairly simple formula and I'm not sure why its not working.

    I have a list of construction projects that are rated under a certain code, the "success" of this code being a percentage (usually between 15 and 85%). I have a long list of projects and am trying to list all of the square footage for the projects with a code percentage greater than 60.0%.

    I tried this originally:

    =IF([cell containing percentage]>"60.0%",[cell containing square footage],0)

    Any ideas? Thanks!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: using apostrophes in =IF( formula

    Try doing it like this

    =IF([cell containing percentage]>60.0%,[cell containing square footage],0)

    putting it in quotes actualy makes it into text, you could do a simple test to see this as so:

    =IF(1="1",1,0)

    it will always return a 0 as "1" is not the same as the number 1
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: using apostrophes in =IF( formula

    I believe that you should jst remove the "". Unless the percentages are formatted as text...?

    You place "" around text, not around a number.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    02-02-2012
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: using apostrophes in =IF( formula

    Yes, found this out about 10 minutes after I posted. Newbie question for sure, but thanks for the help both of you

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: using apostrophes in =IF( formula

    Any time, no question is a bad question, now that its on the forum, anyone searching on google could stumble across this and help them.

    Could you please mark the thread as solved?

+ 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