+ Reply to Thread
Results 1 to 5 of 5

Long formula shortcut help!!!!

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Long formula shortcut help!!!!

    hi, hopefully there is a simple way to do this without me typing it all out .

    PHP Code: 
    =IF(J9=2,AJ3-J8,IF(J9=3,AJ4-J8,IF(J9=3,AJ5-J8))) 
    so as you can see J9 will increase from 2-99 and each time is goes up i want to go to a different cell in the AJ column and -J8

    when J9 = 2 then AJ3 - J8
    when J9 = 3 then AJ4 - J8
    When J9 = 4 then AJ5 - J8
    when J9 = 5 then AJ6 - J8

    i hope this makes sense, but as you can see from my current formula this would take ages to write out, as i need to do this twice on 2 workbooks (but they are different cells.)

    if you can help me with this one i can work out the other one

    Many Thanks
    Rexy

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Long formula shortcut help!!!!

    Why not use the choose function?

    Please Login or Register  to view this content.
    Worked first time.


    Well spotted Olly,
    Last edited by mehmetcik; 12-15-2014 at 09:27 PM.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Long formula shortcut help!!!!

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Olly; 12-15-2014 at 09:12 PM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Long formula shortcut help!!!!

    choose is limited(well mostly) to 30
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Long formula shortcut help!!!!

    Quote Originally Posted by Olly View Post
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this worked perfectly , dont know how i would cope without this forum !!!

    Thanks mate

    Rexy

+ 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] How to make repeat long numbers shortcut ?
    By Bernard Liengme in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  2. [SOLVED] How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  3. How to make repeat long numbers shortcut ?
    By Bernard Liengme in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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