+ Reply to Thread
Results 1 to 22 of 22

row function question

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    row function question

    hi,

    if row A2 has the value 45 how to get the 45 ? without specifying A2 ?
    i need to get the 45 from another cell in the same row...

  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,719

    Re: row function question

    I think you need to explain a bit more ...

    Pete

  3. #3
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    say A2 has the value 45, A10 has the value 100
    want to be able able to get the value 45 in another column on the same row as A2
    want to be able to get the value 100 in another column on the same row as A10

    want a generalized formula not =ROW(A2) or =ROW(A10)

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    trying something like =INDIRECT("Baselines!C"&2+(8*(A(=ROW())-1))) , although this is an invalid function
    idea is =ROW() would give me say 10 , then A10 would give me 100

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: row function question

    Maybe something like this...

    =INDIRECT("A"&ROW())
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    doesnt work

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: row function question

    That formula will return the cell value from column A based on what row the formula is entered on.

    If the formula is entered in Z10 then the reference will be to A10.

    If the formula is entered in D22 then the reference will be to A22.

    If the formula is entered in BA401 then the reference will be to A401.

    Isn't that what you wanted?

  8. #8
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    doesnt work

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: row function question

    Quote Originally Posted by surin526 View Post
    doesnt work
    Worked for me?

    A
    B
    C
    2
    10
    10
    3
    0
    4
    0
    5
    0
    6
    20
    20

    C2=INDIRECT("A"&ROW())
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    say A2 has the value 45, A10 has the value 100
    want to be able able to get the value 45 in another column on the same row as A2
    want to be able to get the value 100 in another column on the same row as A10

    want a generalized formula not =ROW(A2) or =ROW(A10)

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: row function question

    Quote Originally Posted by surin526 View Post
    say A2 has the value 45, A10 has the value 100
    want to be able able to get the value 45 in another column on the same row as A2
    want to be able to get the value 100 in another column on the same row as A10

    want a generalized formula not =ROW(A2) or =ROW(A10)
    This is a direct copy of your post #3. If we didnt understand from that, I doubt repeating the same thing will change anything?

  12. #12
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    i pasted =INDIRECT("A"&ROW()), into a column, it doesnt like this funtion, it asks for function arguments

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: row function question

    The formula I suggested does what you want.

    Maybe give us some more details as to what cells you're entering the formulas in and what results you're getting.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: row function question

    Did you see my post #9? Thats exactly what I used

    @ Tony, you staying warm there?

  15. #15
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    as of now in A2 i have the value 2.
    On E2 , i tried to enter =INDIRECT("A"&ROW())
    it doesnt seem to accept this function

  16. #16
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    nevermind, i was doing something stupid, was pasting the function at the wrong place.. sorry.. thank you Tony, FDibbins..

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: row function question

    Quote Originally Posted by FDibbins View Post

    @ Tony, you staying warm there?
    Yeah, it was -4° this morning but warmed up to 21° this afternoon.

    Supposed to warm up to our normal temps (40's) over the weekend. That's gonna seem like a summer day!

  18. #18
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: row function question

    Quote Originally Posted by surin526 View Post
    i was doing something stupid..
    Been there, done that!

    Glad you got it straightened out.

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: row function question

    Quote Originally Posted by surin526 View Post
    nevermind, i was doing something stupid, was pasting the function at the wrong place.. sorry.. thank you Tony, FDibbins..
    I think we have all done that at 1 time or another

  20. #20
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: row function question

    Thanks for the feeedback

  21. #21
    Registered User
    Join Date
    01-21-2015
    Location
    seattle
    MS-Off Ver
    2013
    Posts
    13

    Re: row function question

    welcome! thank you!

  22. #22
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: row function question

    if A2 = 45 and A10 = 100 and you want get value of A2 (45) in another cell use something like that: =$A2 (i.e. in cell D5) and you will see value 45 in cell D5


    edit:
    ups, not marked post, sorry
    Last edited by sandy666; 03-06-2015 at 10:07 PM.

+ 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] IF function combined with another IF function question
    By Nexion21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2013, 05:13 PM
  2. Using If Function Question
    By Rebecca118 in forum Excel General
    Replies: 7
    Last Post: 10-13-2011, 02:50 AM
  3. PV function question
    By jgomez in forum Excel General
    Replies: 1
    Last Post: 01-16-2011, 10:39 PM
  4. IF Function Question:SUMIF function
    By VBA Noob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-03-2007, 03:28 PM
  5. [SOLVED] Function question
    By Tim in forum Excel General
    Replies: 10
    Last Post: 02-23-2006, 08:15 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