+ Reply to Thread
Results 1 to 6 of 6

putting a ' before number and its still subtracting

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    29

    putting a ' before number and its still subtracting

    Hi all

    I always thought if you put a ' before a number it will stop excel from calculating that into a formula.

    But when i put the ' in front my formulas still include it?

    What am i doing wrong!
    Last edited by Chris_newton; 10-06-2015 at 07:34 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: putting a ' before number and its still subtracting

    What you're doing wrong for a start is making us guess what the formula is.
    What's the formula?

    ' just turns the cell into text.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-10-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: putting a ' before number and its still subtracting

    Sorry its a basic formula, it looks up a figure in another spreadsheet then subtracts from various boxes

    ='xx:\xxx\[Production Hours Availability.xls]2-11-15'!$H$17-F80-F81-F82-F83-F84-F85

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: putting a ' before number and its still subtracting

    Putting an apostrophe in front of a number won't always stop Excel treating it as a number in calculations.
    e.g. =A1+A2+A3 will give 9 if A1 is 4, A2 is '3 and A3 is 2
    but =SUM(A1,A2,A3) (or =SUM(A1:A3) ) will give 6.

    Basically, Excel is sometimes 'cleverer' than you want it to be...

    Assuming it's the F80:F85 cells which sometimes contain apostrophe-led numbers, try this instead of your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Registered User
    Join Date
    08-10-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: putting a ' before number and its still subtracting

    Quote Originally Posted by Aardigspook View Post
    Putting an apostrophe in front of a number won't always stop Excel treating it as a number in calculations.
    e.g. =A1+A2+A3 will give 9 if A1 is 4, A2 is '3 and A3 is 2
    but =SUM(A1,A2,A3) (or =SUM(A1:A3) ) will give 6.

    Basically, Excel is sometimes 'cleverer' than you want it to be...

    Assuming it's the F80:F85 cells which sometimes contain apostrophe-led numbers, try this instead of your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you so so much that did the trick!

    Much appreciated!


  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: putting a ' before number and its still subtracting

    You're welcome and thanks for the rep.

+ 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. Putting serial number.
    By z_i_nayon in forum Excel General
    Replies: 6
    Last Post: 12-24-2014, 01:19 PM
  2. Putting 1 in row after a specified number of rows.
    By iali in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2012, 09:56 AM
  3. [SOLVED] Putting a zero before a number that comes after text
    By LifeIsloud in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-05-2012, 02:30 PM
  4. [SOLVED] Need HELP subtracting a number only if it is greater than another number
    By FLOWERGIRL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2012, 06:58 PM
  5. [SOLVED] Putting Text behind a $tring number
    By wherzdaluv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2012, 10:23 PM
  6. Putting in number from a table
    By e602043 in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 07:29 AM
  7. Putting a space before a letter, after a number
    By Monkey106 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2010, 06:33 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