Skip to content

Add support for reading cell values by column name #9

Description

@bartkl

Suppose this is what your Excel sheet looks like:

1 | First name  | Last name   |
2 | Bart        | Kleijngeld  |
3 | Christian   | Bos         |

Then I would like to do something like:

Read from cell by column name  2  Last name  # returns 'Bos'

or:

Read from cell  (2, Last name)  # returns 'Bos'

These are just examples. How to implement this exactly is a matter of discussion:

  1. Start the row numbering with the first data row or the header row (since the latter is skipped, it might make sense not to count it)?
  2. Should this be a separate keyword, or should it be added as a locator strategy to Read from cell? This seems preferable, but might also be tempting in a bad way, where one so obsessively cramps everything into a single keyword that it becomes hard to maintain, read or even use.

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions