close

Hi there
I have done the following to create a generic payroll system for our other
branches to be able to set up with their own staff and utilise.
1. set up a named range of Staff (StaffName) on one sheet, and used dummy
names to populate
2. created individual sheets for each staff member to act as their timesheet
3. the name of each sheet updates from a drop-down (validation list) box on
the timesheets (I learned that clever little trick from you guys)
4. made a summary sheet that collects data from the individual sheets in a
format that I can create a pivot table from
Problem:
My summary sheet uses the INDIRECT function to lookup the sheet names, and
if the sheets have not been created it returns a #REF! My formula looks like
this =INDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;).
Is there something else I can put in here so that if the sheet name is not
valid, it will return a quot;0quot;?
Hoping someone can help...
Thanks
Jenny

Hi,

You can use the following formula:

=if(ISERROR(INDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))=True,0,=I NDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))

SamoThere is really no need to use TRUE

=IF(ISERROR(INDIRECT(quot;'quot;amp;$B64amp;quot;'!I15quot;)),0,INDIRECT (quot;'quot;amp;$B64amp;quot;'!I$15quot;))

will suffice (I also took out the equal sign which I believe was something
you copied over by mistake when creating the formula)

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
quot;It is a good thing to follow the first law of holes;
if you are in one stop digging.quot; Lord Healeyquot;Samoquot; gt; wrote in message oups.com...
gt; Hi,
gt;
gt; You can use the following formula:
gt;
gt; =if(ISERROR(INDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))=True,0,=I NDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))
gt;
gt; Samo
gt;
Hi Samo
I hope you guys realise what a wonderful service you do for us quot;wannabequot;
experts. I couldn't do without you.
Many thanks, it works a treat.

Jenny

quot;Samoquot; wrote:

gt; Hi,
gt;
gt; You can use the following formula:
gt;
gt; =if(ISERROR(INDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))=True,0,=I NDIRECT(quot;'quot;amp;$B64amp;quot;'!I$15quot;))
gt;
gt; Samo
gt;
gt;


You are right Peo, no need to use True in the Formula. Thank you for the
advice.

Samo--
Samo
------------------------------------------------------------------------
Samo's Profile: www.excelforum.com/member.php...oamp;userid=34413
View this thread: www.excelforum.com/showthread...hreadid=541888

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()