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 / May 2008

Tip: Looking for answers? Try searching our database.

shorten IF Statements

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flanno - 19 May 2008 16:32 GMT
Can someone help me shorten the following IF statement, or give me something
simpler that will work.  I have more conditions I'll need to add:


=if(w22=11,sum(o9:y9),if(w22=10,sum(p9:y9),if(w22=9,sum(q9:y9),if(w22=8,sum(r9:y9),if(w22=7,sum(s9:y9),if(w22=6,sum(t9:y9),if(w22=5,sum(u9:y9),if(w22=4,sum(v9:y9),if(w22=3,sum(w9:y9)))))

I've been looking at this for so long, I can't think clearly!
bpeltzer - 19 May 2008 16:41 GMT
=sum(offset(y9,1-w22,0,w22,1))

> Can someone help me shorten the following IF statement, or give me something
> simpler that will work.  I have more conditions I'll need to add:
[quoted text clipped - 3 lines]
>
> I've been looking at this for so long, I can't think clearly!
Bob Phillips - 19 May 2008 16:44 GMT
=SUM(Y9:INDEX(O9:Y9,12-W22))

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Can someone help me shorten the following IF statement, or give me
> something
[quoted text clipped - 3 lines]
>
> I've been looking at this for so long, I can't think clearly!
Flanno - 19 May 2008 19:08 GMT
TY!  Perfect!

> =SUM(Y9:INDEX(O9:Y9,12-W22))
>
[quoted text clipped - 5 lines]
> >
> > I've been looking at this for so long, I can't think clearly!
 
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.