+ Reply to Thread
Results 1 to 6 of 6

Trying to find current Row

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    Home
    MS-Off Ver
    Microsoft Office 2019
    Posts
    32

    Trying to find current Row

    I'm trying to figure out is there a formula which can output the the row number where it formula is placed?

    exp.
    A1=CURRENT ROW

    Result= 1
    ....
    A22=CURRENT ROW

    Result= 22

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Trying to find current Row

    Try this:

    =ROW()

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-21-2015
    Location
    Home
    MS-Off Ver
    Microsoft Office 2019
    Posts
    32

    Re: Trying to find current Row

    Quote Originally Posted by Pete_UK View Post
    Try this:

    =ROW()

    Hope this helps.

    Pete
    Thank you it worked like a charm but it did not resolve me main objective.

    My formula is getting bigger and bigger so I thought if I use the Name Manger it will solve that problem using the ROW gave me the answer I wanted but not as same as I desire.


    My Formula
    =IF(A15="","",IF(D15="","",IF(D15>OT,((D15-OT)*VLOOKUP(A15,Rate,2)*1.5*1.13*24)+OT*VLOOKUP(A15,Rate,2)*1.13*24,D15*VLOOKUP(A15,Rate,2)*1.13*24)))
    Name Manager
    • OT
    • Rate
    • DD
    • AA
    DD: ="D"&ROW()
    AA: ="A"&ROW()

    with the Name Manager AA and DD I want to remove the column A & D from the formula and I can use same formula wherever I want.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Trying to find current Row

    You will need to use the INDIRECT function to convert the string "D"&ROW() into a cell reference that Excel can work with, so I'm not sure that this is going to shorten your formula.

    Pete

  5. #5
    Registered User
    Join Date
    02-21-2015
    Location
    Home
    MS-Off Ver
    Microsoft Office 2019
    Posts
    32

    Re: Trying to find current Row

    Thank you very much Pete I really appreciate it.

    Using INDIRECT I removed the fixed location values and made ONE formula using the Name Manager.

    One more question regarding the ROW can get the value of next row as-well, I tried ROW()+1 but it just added 1 with the value of that row.

    Exp. T
    A18: 101
    A19: 100
    A20: 250 GET the value of A21 (Trying not to put A21)
    A21: SUM

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Trying to find current Row

    Its not entirely clear what you want but just equal the reference in the row below works. Eg in b21 =b22 for example. An attachment with your desired result as per the banner would make things easier.

+ 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] Find all fonts used in current workbook?
    By njs27 in forum Excel General
    Replies: 9
    Last Post: 08-03-2015, 09:40 AM
  2. [SOLVED] find value in column before current value
    By mattress58 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 07:21 AM
  3. I am looking to find current Template Path
    By Epscan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2015, 10:05 AM
  4. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  5. [SOLVED] Macro to find current month in row
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 03:02 PM
  6. [SOLVED] Find max number of current month.
    By v!ctor in forum Excel General
    Replies: 4
    Last Post: 09-29-2012, 01:25 PM
  7. Find the Birthdays in current month
    By excelkeechak in forum Excel General
    Replies: 9
    Last Post: 12-30-2009, 12:43 AM

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