P
Pixiepea
Help... I would really really appreciate if you could help.
I'm setting up an invoicing system in Excel, based on a template I hac
received which is using macros. I'm not sure if they are using th
simplest way to do this to be honest, and I am a real beginner wit
macros so not sure how to check how these affect anything (if they do)
I have one worksheet called "Invoice" and another called "Customers".
On the invoice sheet I use a dropdown (J2) to choose which customer th
invoice should go to, I then get the contact details filled i
automatically in, say, cells G5 to G13.
These are filled in as follows:
Company name
=IF(ISNA(VLOOKUP($J$2,CompanyInfo,1,FALSE)),"",VLOOKUP($J$2,CompanyInfo,1,FALSE))
Address 1
=IF(ISNA(VLOOKUP($J$2,CompanyInfo,4,FALSE)),"",VLOOKUP($J$2,CompanyInfo,4,FALSE))
..and so on...
However, I have 6 columns for address on the customer sheet - all o
these are not always used. How do I write the formula so that if th
lookup index (cell) is blank, go to the next cell and use that value
if that one is also blank go to the next cell and use that value...?
AND - if the cell DOES have a value in it, how do I move on to the nex
line on my invoice, to fill in the next value gathered from th
customer sheet?
Sorry, don't think I have explained this very well - I hope yo
understand me and can help - otherwise let me know and I''ll try t
explain.
Thanks
Pixiepea
:confused
I'm setting up an invoicing system in Excel, based on a template I hac
received which is using macros. I'm not sure if they are using th
simplest way to do this to be honest, and I am a real beginner wit
macros so not sure how to check how these affect anything (if they do)
I have one worksheet called "Invoice" and another called "Customers".
On the invoice sheet I use a dropdown (J2) to choose which customer th
invoice should go to, I then get the contact details filled i
automatically in, say, cells G5 to G13.
These are filled in as follows:
Company name
=IF(ISNA(VLOOKUP($J$2,CompanyInfo,1,FALSE)),"",VLOOKUP($J$2,CompanyInfo,1,FALSE))
Address 1
=IF(ISNA(VLOOKUP($J$2,CompanyInfo,4,FALSE)),"",VLOOKUP($J$2,CompanyInfo,4,FALSE))
..and so on...
However, I have 6 columns for address on the customer sheet - all o
these are not always used. How do I write the formula so that if th
lookup index (cell) is blank, go to the next cell and use that value
if that one is also blank go to the next cell and use that value...?
AND - if the cell DOES have a value in it, how do I move on to the nex
line on my invoice, to fill in the next value gathered from th
customer sheet?
Sorry, don't think I have explained this very well - I hope yo
understand me and can help - otherwise let me know and I''ll try t
explain.
Thanks
Pixiepea
:confused