#1   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Add to Formula


Hiya Guys and Gals

I am a little stuck but think that i am seeing the light! I have been
at this all day and finally i think i'm gonna crack it, gonna need some
help though;)

How can i change;

=IF(OR(AND(A32(Current-26),A32<=Current),A32(Current+26)),C32,0)

To add another AND command;

AND(E2=Names!D2)

I have tried many variations but just cannot seem to get it right!

Your help is very much appreiciated

Cheers

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=506571

  #2   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Add to Formula

Try:

=IF(OR(AND(A32Current-26,A32<=Current,E2=Names!D2),A32Current+26),C32,0 )

or do you mean:

=IF(OR(AND(A32Current-26,A32<=Current),AND(E2=Names!D2,A32Current+26)), C32,0)

HTH
JG

"superkopite" wrote:


Hiya Guys and Gals

I am a little stuck but think that i am seeing the light! I have been
at this all day and finally i think i'm gonna crack it, gonna need some
help though;)

How can i change;

=IF(OR(AND(A32(Current-26),A32<=Current),A32(Current+26)),C32,0)

To add another AND command;

AND(E2=Names!D2)

I have tried many variations but just cannot seem to get it right!

Your help is very much appreiciated

Cheers

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=506571


  #3   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Add to Formula


Ermm

I think i must have been drunk when i posted my original question as it
was totally wrong. My formula was awful!

This is the correctish formula;

=IF(AND((F32=CurWk),(E1=UpdateWk!P1)),UpdateWk!L3, " ")

let me explain what it is supposed to do,

If F2 is equal to CurWk AND E1 is equal to UpdateWk!P1 then enter value
UpdateWk!L3 else enter " ".

This should work but it doesn't and i cannot see the error in my
code!!!

Regards

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=506571

  #4   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Add to Formula

Hi James

The words and formula don't agree. Is it F2 or F32?
Also, I assume CurWk is a named range, whereas UpdateWk is a sheet name.
Is this correct?, otherwise, you are missing !cellref after Curwk.

Do you possibly have any spaces in the sheet name? If so enclose the
sheet name with single quotes
'Update Wk'!P1

--
Regards

Roger Govier


"superkopite"
wrote in message
...

Ermm

I think i must have been drunk when i posted my original question as
it
was totally wrong. My formula was awful!

This is the correctish formula;

=IF(AND((F32=CurWk),(E1=UpdateWk!P1)),UpdateWk!L3, " ")

let me explain what it is supposed to do,

If F2 is equal to CurWk AND E1 is equal to UpdateWk!P1 then enter
value
UpdateWk!L3 else enter " ".

This should work but it doesn't and i cannot see the error in my
code!!!

Regards

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile:
http://www.excelforum.com/member.php...o&userid=29496
View this thread:
http://www.excelforum.com/showthread...hreadid=506571



  #5   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Add to Formula


Thanks Roger,

The Formula was correct all along the problem was that the Cell it
refered to had a extra "space" after the word so it wasn't equal

Thanks

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=506571



  #6   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Add to Formula

Hi James

Thanks for letting us know you got it sorted.

--
Regards

Roger Govier


"superkopite"
wrote in message
...

Thanks Roger,

The Formula was correct all along the problem was that the Cell it
refered to had a extra "space" after the word so it wasn't equal

Thanks

James


--
superkopite
------------------------------------------------------------------------
superkopite's Profile:
http://www.excelforum.com/member.php...o&userid=29496
View this thread:
http://www.excelforum.com/showthread...hreadid=506571



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
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 12:46 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"