Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

IF Statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
funkeycooldude - 24 Mar 2008 00:33 GMT
Hi there,

Can anyone please help me shorten this IF statement:

=IF((C29=S27),S7,IF((C29=R27),R7,IF((C29=Q27),Q7,I
F((C29=P27),P7,IF((C29=O27),O7,IF((C29=N27),N7,IF(
(C29=M27),M7,IF((C29=L27),L7,IF((C29=K27),K7,IF((C
29=J27),J7,IF((C29=I27),I7,IF((C29=H27),H7,IF((C29
=G27),G7,IF((C29=F27),F7,IF((C29=E27),E7,IF((C29=D
27),D7)))))))))))))))))

The reason why I need this shortening is because Excel says I can only
have 7 IF statements.

Many Thanks,

Signature

funkeycooldude

Max - 24 Mar 2008 03:32 GMT
It looks like you could just use:
=INDEX(D7:S7,MATCH(C29,D27:S27,0))
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

>
> Hi there,
[quoted text clipped - 12 lines]
>
> Many Thanks,
T. Valko - 24 Mar 2008 03:32 GMT
Try this:

=IF(COUNTIF(D27:S27,C29),INDEX(D7:S7,MATCH(C29,D27:S27,0)),"")

Signature

Biff
Microsoft Excel MVP

> Hi there,
>
[quoted text clipped - 11 lines]
>
> Many Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.