+ Reply to Thread
Results 1 to 3 of 3

More efficient way to write this formula?

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    More efficient way to write this formula?

    =IF(INDEX(DataEntry!B:B,(ROW()*3)-7)<1,"",INDEX(DataEntry!B:B,(ROW()*3)-7))

    It works well. Feels so brute; I get the feeling there might be a better way. If not ,that is fine too. Figure I'd run it by someone that feels like pondering a bit.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: More efficient way to write this formula?

    You don't need the parentheses around your multiplication, but I don't think that's the type of advice you were looking for. I wouldn't criticize it because parentheses always remove any possibility of misinterpretation, but multiplication takes precedence.

    I don't see any way to simplify this formula just by modifying the logic in the formula itself. I do see two alternatives. The best one is to create a named formula.

    Go to Formulas, Name Manager. On the dialog box that comes up, click New. For the name, use DataValue. For the formula, use

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I added $ to make this an absolute reference. Then change the formula in your cells to

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The second alternative is to add a "helper" column (let's say column C) with the formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then your formula becomes

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It does simplify the formula, and would speed up performance in a very large spreadsheet, but helper columns have the drawback of taking up more space and cluttering the presentation, a particular problem if you are giving this to someone else to use.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: More efficient way to write this formula?

    (Self-deleted: misread question)
    Last edited by XOR LX; 01-12-2014 at 11:00 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Is there a more efficient way to write this formula
    By Excelsius in forum Excel General
    Replies: 8
    Last Post: 02-01-2012, 11:12 AM
  2. formula help, anything more efficient than 3 IFs?
    By TechRetard in forum Excel General
    Replies: 0
    Last Post: 02-03-2011, 01:17 PM
  3. Most Efficient Way to Write Out Data
    By ld_pvl in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-09-2011, 04:01 PM
  4. need more efficient formula
    By tania_del in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2010, 01:06 PM
  5. is there a more efficient formula than...
    By Wazooli in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2005, 03:06 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