#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default Help with Formula

Dear David

I actually found the actual mistake, as you can see.

This project I am doing started with me having no knowledge of excel so I do
come back to Formulas all the time and simplfy them. Thanks for your help

best

stewart

"David Biddulph" wrote:

Well, I'm not sure of all of what you are trying to do, but the formula can
be simplified. The divide by 1 doesn't do anything, nor does the INT. You
can also get rid of unnecessary parentheses, and convert -45+2 to -43.

It thus simplifies to
=IF(AND(INDIRECT("'Date Details'!"&ADDRESS(6,ROW()-43))="GB",INDIRECT("'Date
Details'!"&ADDRESS(7,ROW()-43)))="REHEARSALS","REHEARSALS",INDIRECT("'Date
Details'!"&ADDRESS(6,ROW()-43)))

Either your original formula or my replacement will return GB in the
situation you're talking about.

I think you've got your parentheses wrong.
You probably wanted
AND(INDIRECT("'Date Details'!"&ADDRESS(6,ROW()-43))="GB",INDIRECT("'Date
Details'!"&ADDRESS(7,ROW()-43))="REHEARSALS")
not
AND(INDIRECT("'Date Details'!"&ADDRESS(6,ROW()-43))="GB",INDIRECT("'Date
Details'!"&ADDRESS(7,ROW()-43)))="REHEARSALS"

hence the revised version becomes
=IF(AND(INDIRECT("'Date Details'!"&ADDRESS(6,ROW()-43))="GB",INDIRECT("'Date
Details'!"&ADDRESS(7,ROW()-43))="REHEARSALS"),"REHEARSALS",INDIRECT("'Date
Details'!"&ADDRESS(6,ROW()-43)))
--
David Biddulph


stew wrote:
Hi can anybody see an error in this Formula which is in E46 on a
different
worksheet

=IF(=IF(AND(INDIRECT("'Date
Details'!"&ADDRESS(6,ROW()-43))="GB",INDIRECT("'Date
Details'!"&ADDRESS(7,ROW()-43)))="REHEARSALS","REHEARSALS",INDIRECT("'Date
Details'!"&ADDRESS(6,ROW()-43)))REHEARSALS",INDIRECT("'Date
Details'!"&ADDRESS(6,(INT(ROW()/1-45)+2))))

It should do the following
If the 2 conditions
date details C6 =GB AND date details C7 = Rehearsals the result
should read
Rehearsals
At the moment it is returning date details C6

Thanks for looking

Stew




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



All times are GMT +1. The time now is 01:21 PM.

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"