Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cummingse
 
Posts: n/a
Default Need Help With ARRAY Formula


1. During a four-week period, you worked the following hours, Week 1
(36
3/8 hr), Week 2 (41 1/4 hr), Week 3 (41 1/2 hr) and Week 4 (38 3/8 hr).
What
is the
average number of hours you worked in one week.

A 38 1/4 A FALSE
B 38 3/4
C 38 1/8
D 39 3/8
I have created a ARRAY Formula that if you select the wrong answer

it
retuns False, and if you select the correct answer it retuns True, But
the
problems is when the named cell (ANS) is blank it retuns FALSE, and I
would
like it to be Blank (Empty). What do I need to add to this formula to
make
it show an empty cell when named cell ANS is empty.

{=IF(ANS=ANSD."True",IF(ANS=ANSA,"False",IF(ANS=AN SB,"False",IF(ANS=ANSC,"False"))))}
Once again thanks a million for your time and help



--
cummingse
------------------------------------------------------------------------
cummingse's Profile: http://www.excelforum.com/member.php...o&userid=25611
View this thread: http://www.excelforum.com/showthread...hreadid=390230

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

How about this - all those extra "False" returns aren't needed, nor does it need to be array
entered:

=IF(ANS="","",IF(ANS=ANSD,"True","False"))

HTH,
Bernie
MS Excel MVP


"cummingse" wrote in message
...

1. During a four-week period, you worked the following hours, Week 1
(36
3/8 hr), Week 2 (41 1/4 hr), Week 3 (41 1/2 hr) and Week 4 (38 3/8 hr).
What
is the
average number of hours you worked in one week.

A 38 1/4 A FALSE
B 38 3/4
C 38 1/8
D 39 3/8
I have created a ARRAY Formula that if you select the wrong answer

it
retuns False, and if you select the correct answer it retuns True, But
the
problems is when the named cell (ANS) is blank it retuns FALSE, and I
would
like it to be Blank (Empty). What do I need to add to this formula to
make
it show an empty cell when named cell ANS is empty.

{=IF(ANS=ANSD."True",IF(ANS=ANSA,"False",IF(ANS=AN SB,"False",IF(ANS=ANSC,"False"))))}
Once again thanks a million for your time and help



--
cummingse
------------------------------------------------------------------------
cummingse's Profile: http://www.excelforum.com/member.php...o&userid=25611
View this thread: http://www.excelforum.com/showthread...hreadid=390230



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
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
How can you use count with an array formula similar to using sum PhilH Excel Worksheet Functions 3 June 27th 05 08:00 AM
Trouble shooting#NA error in Array formula RonR Excel Discussion (Misc queries) 2 June 14th 05 09:58 PM
Changing a range of an array in a SUMPRODUCT formula gives a #N/A error Chrism Excel Discussion (Misc queries) 4 May 4th 05 04:06 PM
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 04:41 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"