ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Look up functions (https://www.excelbanter.com/excel-discussion-misc-queries/215399-look-up-functions.html)

wcurtis

Look up functions
 
Is there a formula that will look up the value in cell B1 in a sheet named
AE1 and copy the value into cell O3 in sheet named Data?
I have several sheets and values I need copied.
I have tried making the cell O3 in the Data sheet =AE1!B1 but I do not
always have a sheet named AE1 for the cell to refer to. I need to be able to
copy the Data sheet into a workbook and have it populate automatically and if
a sheet is not found the return a value of 0 to that cell.


JBeaucaire[_46_]

Look up functions
 

One way:

=IF(ISERROR(AE1!A1),0,AE1!A1)


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=46793


wcurtis

Look up functions
 
Works great, but can I copy into a new workbook with out it referencing the
workbook it came out of?

"JBeaucaire" wrote:


One way:

=IF(ISERROR(AE1!A1),0,AE1!A1)


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=46793



JBeaucaire[_52_]

Look up functions
 

Copy/Paste would add the original workbook name. Why copy? Just write
new versions for the new workbook.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=46793



All times are GMT +1. The time now is 05:28 AM.

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