+ Reply to Thread
Results 1 to 7 of 7

Don't want to re-type formula

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Monterrey
    MS-Off Ver
    2010
    Posts
    42

    Don't want to re-type formula

    Is there a way to do this:

    =IF(A1+B1<0,0,A1+B1), with out having to re-type the formula for the [value_if_false] area?

    Thanks!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Don't want to re-type formula

    If I understand your question, the formula as presented works already.

    Please Login or Register  to view this content.
    Or, what am I missing in your question ?

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Don't want to re-type formula

    =max(0, a1+b1)

  4. #4
    Registered User
    Join Date
    08-22-2014
    Location
    Monterrey
    MS-Off Ver
    2010
    Posts
    42

    Re: Don't want to re-type formula

    Thank you for responding so quickly!

    The formula works just fine, I was just wondering if there was a different way to type it. This is just an example of how I use the formula. Most of the time it's not A1+B1, but rather a longer fmla. At current time, I just use Ctrl-C , Ctrl-V, but, as mentioned above, I was curious as if there was a differnt way to do it.

    Cheers!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Don't want to re-type formula

    There is no built-in shortcut that is better than what cytop provided. The closest thing is IFERROR but you are not interested in whether there is an error.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    08-22-2014
    Location
    Monterrey
    MS-Off Ver
    2010
    Posts
    42

    Re: Don't want to re-type formula

    Thank you!

    This works great for this case, but what if I'm not making a mathemathical answer? Let's say my fmla is:

    =IF(VLOOKUP(A1,PAGE1!A:Q,4,0)<>"TEXAS","NOT TX",VLOOKUP(A1,PAGE1!A:Q,4,0))

    I don't need a specific answer to the formula, just a way (shortcut, other than Ctrl-C/V) so I can avoid typing the second "VLOOKUP(A1,PAGE1!A:Q,4,0)".

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Don't want to re-type formula

    There is no shortcut for what you want to do. You could create a user-defined function in VBA to do something like that if you really wanted to go that far.

+ 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] weekday() result used in an array formula doesn't work. Formula works if i type in date
    By aarco50 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 03:25 PM
  2. [SOLVED] multiple conditions to count large amount of data by Type, month & activity type
    By norfolk_lass in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2014, 12:54 PM
  3. Replies: 0
    Last Post: 07-06-2013, 12:59 PM
  4. Replies: 2
    Last Post: 04-24-2013, 01:36 PM
  5. Excel 2007 : Type of formula to use
    By cemccabe in forum Excel General
    Replies: 3
    Last Post: 05-17-2012, 10:08 AM
  6. [SOLVED] Not sure what type of Formula to use...
    By Kim in forum Excel General
    Replies: 4
    Last Post: 06-26-2006, 03:50 PM
  7. [SOLVED] Help: Compile error: type mismatch: array or user defined type expected
    By lvcha.gouqizi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2005, 05:05 PM

Tags for this Thread

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