• Quick Tip – Flip Numbers From + To – (Or Vice Versa)

    I was working with some budget stuff today and wanted to forecast that a range of accounts would be written off. I had a forecast that showed the projected transactions monthly, (all zeros as the projects have been discontinued,) and the projected year-end balance. So I basically wanted to take the projected year-end balances, flip them from positive to negative and stuff them in the July transaction column. Here’s how:

    • Copy the range of numbers
    • Right click the destination and choose PasteSpecial
    • Select Values and Subtract:


    • Say OK and voila:


    Now interestingly enough, if there are values in the cells, it overwrites them. If there are formulas in the cells, it subtracts them from the formulas. Kind of odd that it isn’t consistent.

    (And of course, if you subtract a negative number, it turns into a positive too.)


    Quote Originally Posted by ruve1k
    on July 30th, 2011 at 6:28 pm

    In all of my past experiences, if there were values in the destination cells, it subtracts the copied values from the values in the destination cells and does not simply overwrite them.

    Yep, you’re absolutely correct. I had a base of zero in the cell, so it subtracted from zero. (Could have sworn I tested it before I posted and it overwrote though. Just tested again to be sure and you are correct!)


    Quote Originally Posted by brettdj
    on August 26th, 2011 at 5:48 pm

    This different behaviour of Paste Special with values and formulas has led me to specify a modelling standrad that any data entries should be preceded with a “=” sign so that any future Paste Special alterations are transparent, ie
    =2
    rather than
    2

    I use a simple routine to back convert old models from numeric constants to numeric formulas

    Cheers

    Dave

     

    I'm afraid that you must be logged in to comment or leave a testimonial. I wish it could be otherwise, but I'm trying to keep my site spam free for everyone's benefit. If you don't yet have an account it's completely free to sign up, and a very quick process. Simply click here to Register. Not only can you post a comment here, but it gives you full access to posts questions in our forum as well!

     

    If you already have an account, and just haven't logged in yet, what are you waiting for? Login Now!

  • MVP Logo
  • Recent Forum Posts

    ohhaykfrankk

    2010 index match

    My table is as such:
    Column B: Names
    Column E: Remainder
    Column K: Criteria is True or False.

    I need a formula that searches...

    ohhaykfrankk Today, 12:58 AM Go to last post
    Hercules1946

    Countif visible cells only

    Hello
    I don't think that COUNTIF itself will work, but it can be done using SUMPRODUCT, if that helps.
    See my attachment....

    Hercules1946 Yesterday, 11:48 PM Go to last post
    coachclint

    If statements

    thank you - the two formulas you provided are outside of my scope unless they are explained teacher to student
    as a caveat to this - how do you...

    coachclint Yesterday, 11:00 PM Go to last post
    NBVC

    If statements

    I was also going to suggest:

    =IF(G14="ns",-10,IF(ISBLANK(G14),0,LOOKUP(G15-$B14,{-9.99999E+307,4,6,8},{5,2,1,-5})))

    ...

    NBVC Yesterday, 09:33 PM Go to last post
    p45cal

    If statements

    What are all those AND(...)s doing in there?; they seem at first sight to be superfluous.
    You could also try the likes of:
    =IF(G14="ns",-10,IF(ISBLANK(G14),0,INDEX({5;2;1;-5},MATCH(G14-$B14-0.00001,{-9999;3;5;7}))))...

    p45cal Yesterday, 09:19 PM Go to last post