Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to correlate data from multiple worksheets ? #353

Open
alexandre-ava opened this issue Apr 26, 2024 · 1 comment
Open

Is it possible to correlate data from multiple worksheets ? #353

alexandre-ava opened this issue Apr 26, 2024 · 1 comment

Comments

@alexandre-ava
Copy link

I'm quite amazed by how the code become simple using templates. However, I'm not sur this library can handle my use case.

I have a sheet "Quotation" that contains quotation lines and another sheet "Catalog" that contains products with their prices. In a column of my "Quotation" sheet, for each quotation line I will have a refrence to the cell containing the price of the corresponding product in the "Catalog" sheet. I'm wondering if there is a mechanism to do that using ClosedXML.Report.

Here is what I mean:

image

The quotations lines don't have to be in the same order than the products in the catalog.

So I don't know if I will be able to correlate the quotation lines with the associated products using ClosedXML.Report. Any idea if it's possible?

@alexandre-ava
Copy link
Author

I'm thinking about assigning names to all the prices in my worksheet Catalog ("Product1" for cell B1 for instance) and use the INDEX function to retrieve them in my worktheet Quotation ("=INDEX("Product1";1)" in H3 for instance). I don't know if it's a good idea and I don't know if assigning range names can be done using ClosedXml.Report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant