Forum Discussion
need help using header reference to pull data from worksheet
You can use the INDIRECT function for this purpose. Since I don't know what the sheets for the individual dates look like, I'll provide an example. In B3:
=SUMIFS(INDIRECT("'"&B$2&"'!$F$1000"), INDIRECT("'"&B$2&"'!$A$1000"), $A3)
This sums the quantities in column F on the other sheet for the rows where column A contains the product in A3 ("Nails").
This can be filled down and to the right.
Hi HansVogelaar ,
Thank you for the suggestion. The data sheets are very similar to the master sheet, same row heading and then values based on the inventory count.
I'm just wanting to pull the inventory count but use the column heading, maybe a vlookup would work better.
- HansVogelaarNov 25, 2023MVP
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
- Rob__JamesNov 25, 2023Copper Contributor
HansVogelaar https://1drv.ms/x/s!AidcrXjrKwAHkQqwqEDJ4SOKyUR8?e=2msGEG
- HansVogelaarNov 26, 2023MVP
Thanks. See the attached workbook.