Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default shorten IF Statements

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:y 9),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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default shorten IF Statements

=sum(offset(y9,1-w22,0,w22,1))

"Flanno" wrote:

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:y 9),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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default shorten IF Statements

=SUM(Y9:INDEX(O9:Y9,12-W22))

--
---
HTH

Bob


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



"Flanno" wrote in message
...
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:y 9),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!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default shorten IF Statements

TY! Perfect!

"Bob Phillips" wrote:

=SUM(Y9:INDEX(O9:Y9,12-W22))

--
---
HTH

Bob


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



"Flanno" wrote in message
...
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:y 9),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!




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
Is there away to shorten Steved Excel Worksheet Functions 2 April 17th 08 08:21 PM
Can I shorten this any? Gregory Day Excel Worksheet Functions 1 April 10th 08 06:29 PM
Any way to shorten this up? Kevin M Excel Worksheet Functions 2 November 6th 06 07:50 PM
How do I shorten a number? swingkittenva Excel Discussion (Misc queries) 3 January 6th 06 04:31 PM
Shorten A Name rocket0612 Excel Discussion (Misc queries) 3 June 14th 05 11:37 AM


All times are GMT +1. The time now is 04:17 AM.

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"