+ Reply to Thread
Results 1 to 3 of 3

Passing a row to a function

  1. #1
    dch3
    Guest

    Passing a row to a function

    I need to take the row value of the cell in which a function appears and pass
    that value into the function itself. As in the example below, cells A1, A2,
    A3 all contain the function getName(), I would like getName() to evaluate
    differently based on the row number. Is this possible?

    COLUMN
    ROW A B
    1 =getName()
    2 =getName()
    3 =getName()

  2. #2
    Barb Reinhardt
    Guest

    RE: Passing a row to a function

    row()?

    "dch3" wrote:

    > I need to take the row value of the cell in which a function appears and pass
    > that value into the function itself. As in the example below, cells A1, A2,
    > A3 all contain the function getName(), I would like getName() to evaluate
    > differently based on the row number. Is this possible?
    >
    > COLUMN
    > ROW A B
    > 1 =getName()
    > 2 =getName()
    > 3 =getName()


  3. #3
    dch3
    Guest

    RE: Passing a row to a function

    That will work. In the future, you may want to elaborate a little bit more. I
    didn't understand your response until I opened Excel and tried the function.
    I obviously wasn't aware that it was a valid Excel function.

    "Barb Reinhardt" wrote:

    > row()?
    >
    > "dch3" wrote:
    >
    > > I need to take the row value of the cell in which a function appears and pass
    > > that value into the function itself. As in the example below, cells A1, A2,
    > > A3 all contain the function getName(), I would like getName() to evaluate
    > > differently based on the row number. Is this possible?
    > >
    > > COLUMN
    > > ROW A B
    > > 1 =getName()
    > > 2 =getName()
    > > 3 =getName()


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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