+ Reply to Thread
Results 1 to 19 of 19

Make Fomrula Shorter..

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Make Fomrula Shorter..

    hi all...

    how to make more shorter this formula below :

    in L161----=VLOOKUP(VLOOKUP($N$2,'Input Lap'!$A:$CQ,(ROW()-161)/27+23,FALSE),'Input Lap'!$A:$CQ,9,FALSE)
    in L188----=VLOOKUP(VLOOKUP($N$2,'Input Lap'!$A:$CQ,(ROW()-161)/27+23,FALSE),'Input Lap'!$A:$CQ,9,FALSE)
    in L215----=VLOOKUP(VLOOKUP($N$2,'Input Lap'!$A:$CQ,(ROW()-161)/27+23,FALSE),'Input Lap'!$A:$CQ,9,FALSE)

    any help, thanks in advance..

    jhon m

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Make Fomrula Shorter..

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Make Fomrula Shorter..

    Why do you want to shorten it? What's the problem? It isn't really very long.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    in yellow shading with arrow as clue...
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Make Fomrula Shorter..

    where did this bit come from?

    (ROW()-161)/27+23

  6. #6
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    Quote Originally Posted by AliGW View Post
    Why do you want to shorten it? What's the problem? It isn't really very long.
    hi ali...i want more effective ..contains double vlookup & name sheets

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Make Fomrula Shorter..

    Here is a little bit shorter:
    replace FALSE in your formula with zero.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    i sheet "Input Lap"..col. I2 down (city Town)...that's data which i want to pull it...

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Make Fomrula Shorter..

    Quote Originally Posted by Jhon Mustofa View Post
    i want more effective
    What is ineffective about it? What is it not doing properly?

  10. #10
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    Quote Originally Posted by AlKey View Post
    Here is a little bit shorter:
    replace FALSE in your formula with zero.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    hi Alkey worked it...but i still confuse in myself...where come from +23

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Make Fomrula Shorter..

    where come from +23
    You have had that explained here: https://www.excelforum.com/excel-for...3-int-row.html

    It would be very much easier for everyone if these interrelated queries were kept in one thread.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Make Fomrula Shorter..

    I am rather confused.

    But this seems to do what you want:

    L161 =INDEX('Input Lap'!I2:$I$116,$N$2)

    L188 =INDEX('Input Lap'!I2:$I$116,$N$2+1)

    L215 =INDEX('Input Lap'!I2:$I$116,$N$2+2)

    But some explanation of what you are hoping the formula should do would be helpful!!!!
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    hi Glen..it works...but your formula can't copied down..i must type manual / change range..
    L161 =INDEX('Input Lap'!I2:$I$116,$N$2)

    L188 =INDEX('Input Lap'!I2:$I$116,$N$2+1)

    L215 =INDEX('Input Lap'!I2:$I$116,$N$2+2)

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Make Fomrula Shorter..

    In response to post #13,

    L161 =INDEX('Input Lap'!$I$2:$I$116,$N$2)+INT((ROWS($1:1)-1)/27)
    Last edited by 63falcondude; 12-12-2017 at 12:19 PM. Reason: Missed absolute ($) signs

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Make Fomrula Shorter..

    L161 copied down:

    =INDEX('Input Lap'!$I$2:$I$116,$N$2+INT((ROWS($1:1)-1)/27))

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Make Fomrula Shorter..

    63FD.. you didn't spot my error with the lack of $$$$ in the first range!!!

  17. #17
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Make Fomrula Shorter..

    Quote Originally Posted by Glenn Kennedy View Post
    63FD.. you didn't spot my error with the lack of $$$$ in the first range!!!
    You are right, I did not! I didn't look at the formula at all to be honest.

  18. #18
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Make Fomrula Shorter..

    A couple expressions seem to fit this thread...

    Shorter Does Not Mean Better.
    If it isn't broken, don't fix it.

  19. #19
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Make Fomrula Shorter..

    thank guys....you're great!!! I love this forum.....

+ 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. make 2 vba shorter and more compact
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2017, 02:39 PM
  2. Make this formula shorter
    By Challebjoern in forum Excel General
    Replies: 16
    Last Post: 10-15-2015, 01:28 AM
  3. How to make this formula shorter
    By PatrikIden in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2015, 06:57 AM
  4. Ways to make it shorter
    By Alendi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2015, 01:01 PM
  5. Make a formula shorter
    By PatrikIden in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-03-2014, 01:45 PM
  6. Make VBA code shorter
    By juanrmz24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2013, 12:11 PM
  7. [SOLVED] How to make formula shorter ?
    By nur2544 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2012, 02:14 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