Hi,
I am creating a template for invoice creation. There are 300 pay items (pre quoted, and any number or combination can be used) and I have allowed a section for variations that happen ad-hoc.
All 300 pay items indivudially numbered, they all follow the same basic principal there is: (only exception is variations that all have item numbers ranging between 5000-5999 and they can have the same item number repeated based on the variation type, so I added area where they can be included then anything with that range of item number then has to be referenced into that section via text matching provided in a drop down list, kinda messy but I've tried my best) but neverthe less they follow the same convention of:
-UOM 1(unit of measure)
-rate 1
-qty used 1
-UOM 2
-rate 2
-qty used 2
To determine cost some pay items are simply (rate 1 X qty used 1) + (rate 2 X qty used 2) but others are (((qty 2 X rate 2) + rate 1) X qty 1) and others simply only have rate 1, UOM 1 and quantitiy 1
My problem is how to tell the "total" cell what "formula" to use based off the item number
Not sure if importiant but all cells here come from an input sheet in the same workbook so I was able to allow for the variations to come through
I have tried to go down the VLOOKUP pathway to then have the correct "formula" located next to the master pay item list and tried to use the OFFSET to then base off the refernce cell but with the variations, it was getting too lost in the formula so then tried to place this in the input sheet but again I was getting errors.
Also I am writing everything in formula, as no one else in the office can use VBA, so makes sense that if anyone else ever needs to change then they can follow a touch easier.
Thanks
I am creating a template for invoice creation. There are 300 pay items (pre quoted, and any number or combination can be used) and I have allowed a section for variations that happen ad-hoc.
All 300 pay items indivudially numbered, they all follow the same basic principal there is: (only exception is variations that all have item numbers ranging between 5000-5999 and they can have the same item number repeated based on the variation type, so I added area where they can be included then anything with that range of item number then has to be referenced into that section via text matching provided in a drop down list, kinda messy but I've tried my best) but neverthe less they follow the same convention of:
-UOM 1(unit of measure)
-rate 1
-qty used 1
-UOM 2
-rate 2
-qty used 2
To determine cost some pay items are simply (rate 1 X qty used 1) + (rate 2 X qty used 2) but others are (((qty 2 X rate 2) + rate 1) X qty 1) and others simply only have rate 1, UOM 1 and quantitiy 1
My problem is how to tell the "total" cell what "formula" to use based off the item number
Not sure if importiant but all cells here come from an input sheet in the same workbook so I was able to allow for the variations to come through
I have tried to go down the VLOOKUP pathway to then have the correct "formula" located next to the master pay item list and tried to use the OFFSET to then base off the refernce cell but with the variations, it was getting too lost in the formula so then tried to place this in the input sheet but again I was getting errors.
Also I am writing everything in formula, as no one else in the office can use VBA, so makes sense that if anyone else ever needs to change then they can follow a touch easier.
Thanks