ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I need help (https://www.excelbanter.com/excel-programming/271836-i-need-help.html)

mike

I need help
 
I have posted an example of my workbbok at
http://massivemike.co.uk/Tickets.htm
What i want to do is put a number in A4 on sheet 1 and
have it insert the appropriate name from sheet 2 ready for
printing, it works ok with numbers but when i need text i
get a #VALUE error, any ideas anyone i'm pulling my hair
out now, i can email it to you if req

Bob Phillips[_5_]

I need help
 
Mike,

Bad formula.

Try
=IF(A4=1,Sheet2!C1,IF(A4=2,Sheet2!C2,IF(A4=3,Sheet 2!C3,"")))

although you may want a different default to "".


--
HTH

-------

Bob Phillips
... looking out across Poole Harbour to the Purbecks


"mike" wrote in message
...
I have posted an example of my workbbok at
http://massivemike.co.uk/Tickets.htm
What i want to do is put a number in A4 on sheet 1 and
have it insert the appropriate name from sheet 2 ready for
printing, it works ok with numbers but when i need text i
get a #VALUE error, any ideas anyone i'm pulling my hair
out now, i can email it to you if req





All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com