I'm working on a spreadsheet to output payslips for my father-in-law's company. (I'd hoped to build a whole payroll system in Access, but it's an... irregular system that doesn't lend itself very well to that.)
Anyway, the workbook consists of two worksheets; one called "Payslips" that will contain 80 copies of the payslip (I'm sure there's a way to do it automatically like some sort of mail merge, but that's rather beyond me.), each with a small payslip number in the top corner (H2 in the case of the first one).
The other worksheet is called "Staff", and has the staff information in columns for employee number, name, surname and so on.
The idea is that I want to pull data from those cells into cells in Payslips, and I'd originally tried to do it with this experiment:
Yeah... it didn't work. Then I tried another one I can't remember - ADDRESS, I think - and that didn't work either.
Now, the ideal thing would be if there is some ingenious mail mergey way of doing it, so if there is I'd love to hear about it.
More likely, I guess, is finding a way to just pull that index number into the cell reference. Can anyone help?
Anyway, the workbook consists of two worksheets; one called "Payslips" that will contain 80 copies of the payslip (I'm sure there's a way to do it automatically like some sort of mail merge, but that's rather beyond me.), each with a small payslip number in the top corner (H2 in the case of the first one).
The other worksheet is called "Staff", and has the staff information in columns for employee number, name, surname and so on.
The idea is that I want to pull data from those cells into cells in Payslips, and I'd originally tried to do it with this experiment:
Code:
=Staff!(CONCATENATE("A", H2))
Yeah... it didn't work. Then I tried another one I can't remember - ADDRESS, I think - and that didn't work either.
Now, the ideal thing would be if there is some ingenious mail mergey way of doing it, so if there is I'd love to hear about it.
More likely, I guess, is finding a way to just pull that index number into the cell reference. Can anyone help?