OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Trying to get around the if limit.

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
collycrk
Newbie
Newbie


Joined: 02 Feb 2010
Posts: 2

PostPosted: Tue Feb 02, 2010 10:58 am    Post subject: Trying to get around the if limit. Reply with quote

Using oo-calc I am creating a spread sheet and saving it in an excel format.

This works: =IF(A2="Flat Roofing /ISO",INDIRECT("Torch"&"!A4"),"Cost sheet not created.")

This does not: =IF(A2="Flat Roofing /ISO", INDIRECT("VLOOKUP(A2,ListTables!A2:A50,2,0)"&"!A4"), "Cost sheet not created.")

I get an err:502

Thanks for your help.
_________________
Carl
Seeker of truth. Computers do not lie.
Back to top
View user's profile Send private message
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2732
Location: Egersund, Norway

PostPosted: Tue Feb 02, 2010 11:28 am    Post subject: Reply with quote

The error is within the VLOOKUP(). You request the value from column 2, but your lookup range is only one column.
Back to top
View user's profile Send private message
collycrk
Newbie
Newbie


Joined: 02 Feb 2010
Posts: 2

PostPosted: Tue Feb 02, 2010 2:09 pm    Post subject: Reply with quote

This works for one time:

=IF(A2="Flat Roofing Torch ISO",INDIRECT(VLOOKUP(A2, $ListTables.$A$2:$B$50,2,0) & ".A4"),"costsheet not created.")

As soon as A2 changes it will stop working. Even when A2 returns to the value that was there when the if statement was created. But if a space is taken out of the formula and but back in it will work for one time again.

Whats up with that?
_________________
Carl
Seeker of truth. Computers do not lie.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group