#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default lookup issue....

I am stuck...cant figure out whats wrong with this formula....any help???

=if(isblank(Data Sheet!E3,"1",'Data Sheet'!E3))


Also if i want to use the above formula and copy to say 120 sheets but on
each sheet "E3" changes to the E4 E5 E6 etc....is there a way to do that
other than by hand? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default lookup issue....

Try this

=IF(ISBLANK('Data Sheet'!E3),"1",'Data Sheet'!E3)

If this post helps click Yes
---------------
Jacob Skaria


"John" wrote:

I am stuck...cant figure out whats wrong with this formula....any help???

=if(isblank(Data Sheet!E3,"1",'Data Sheet'!E3))


Also if i want to use the above formula and copy to say 120 sheets but on
each sheet "E3" changes to the E4 E5 E6 etc....is there a way to do that
other than by hand? Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default lookup issue....

John

I don't think you want the "1" which will be text.

Better to use just =IF(ISBLANK('Data Sheet'!E3),1,'Data Sheet'!E3)

To increment this across 120 sheets run this macro.

Assumes Data Sheet is first sheet and you want the incremented formula in A1
of each sheet.

Sub Formula_Increment()
'increment a formula into A1 across sheets
Dim iCtr As Long
For iCtr = 2 To Worksheets.Count
With Worksheets(iCtr).Range("A1")
.Formula = "=IF(ISBLANK('Data Sheet'!E" _
& iCtr + 1 & "),1,'Data Sheet'!E" & iCtr + 1 & ")"
End With
Next iCtr
End Sub


Gord Dibben MS Excel MVP

On Thu, 25 Jun 2009 10:22:02 -0700, John
wrote:

I am stuck...cant figure out whats wrong with this formula....any help???

=if(isblank(Data Sheet!E3,"1",'Data Sheet'!E3))


Also if i want to use the above formula and copy to say 120 sheets but on
each sheet "E3" changes to the E4 E5 E6 etc....is there a way to do that
other than by hand? Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup Issue Pat Excel Discussion (Misc queries) 2 November 20th 08 04:50 PM
Complex lookup issue Lorderon Excel Discussion (Misc queries) 2 August 15th 08 02:20 AM
Lookup Issue due to formatting The Intern Excel Worksheet Functions 5 May 29th 08 09:30 PM
Lookup Issue Jayz Excel Worksheet Functions 5 May 8th 08 09:22 AM
LOOKUP Command Issue VegasBurger Excel Worksheet Functions 1 August 2nd 06 07:35 PM


All times are GMT +1. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"