+ Reply to Thread
Results 1 to 7 of 7

Specifying row number in formula

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Specifying row number in formula

    Hello all,

    Please help~

    I want to do as the following:

    In sheet 1 I have all the data needed for sheet 2, organizing in row, which means for a particular cargo, its details will be all having same row number

    Cargo A data 1 data 2 data 3 ....... and so on
    Cargo B data 1 data 2 data 3 ....... and so on

    In sheet 2, I have a form in which I wish to have it auto fill in the cargo particular by inserting in just the row number for the cargo in sheet 1.

    Cargo A

    data 1 =Sheet1!A#

    data 2 =Sheet1!B#

    data 3 =Sheet1!C#

    "Cargo A is row 2, then # should be substitue with 2"

    I wish to have a way effectively changing the row number for each formula.

    Hope this is not a confusing explanation for you all... Please HELP!
    Attached Files Attached Files
    Last edited by lait0002; 01-06-2010 at 04:56 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,025

    Re: Specifying row number in formula

    Arent all data of same cargo in same row?

    And isn't Cargo A in 1 row not second?
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Specifying row number in formula

    The simplest thing to avoid repetitive calcs is to conduct a single match to establish appropriate row from which data is to be retrieved, eg:

    Please Login or Register  to view this content.
    Continuing with assumption that the above resides in B1 on sheet2 and data1 (Sheet1!B2) is to reside in A2 on Sheet2, data2 (Sheet1!C2) in A3 etc then:

    Please Login or Register  to view this content.
    Note: in above I've assumed as outlined that Data1 is in Column B on Sheet1 (rather than Col A) given we assume "Cargo A" is in fact the value listed in Column A (per your example)

    If needed - post a sample file to better illustrate setup.

  4. #4
    Registered User
    Join Date
    01-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Specifying row number in formula

    Dear all!

    Thanks a lot for your suggestion. Could you please take a look at the attachment?

    I tried but can't get it.

    Thanks again!


    Best Regards,
    Kelvin

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Specifying row number in formula

    Kelvin, see attached

    In short you need to get some consistency between values used in A column on AGENCY sheet and those headers used on Classification sheet - to avoid repetitive match calc see use of D1 (exclude from your print range as nec.)

    If you really need to alter Col A values such that they do not match headers on Classification sheet then I would suggest you consider using Custom Formatting to display & print different text to underlying values.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Specifying row number in formula

    I can't express in words how much gratitude I have felt for your help.

    Thanks for your help!! Really!

  7. #7
    Registered User
    Join Date
    07-07-2009
    Location
    Karachi
    MS-Off Ver
    Excel 2007
    Posts
    26

    Post Re: Specifying row number in formula

    Hi!

    The 2nd possibility. i'm not sure is this correct but trying on sheet provided by Dk i have found the same result. Remove blank rows from a sheet2

    In D5 and copy down

    =VLOOKUP(D$3,Specification!$A$2:$Q$39,ROW()-1,FALSE)
    Last edited by sheryar; 01-06-2010 at 02:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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