Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default a if calculation help

Hi all i have a if calculation which i need to expand but I can't figure it
out

=IF(AND(D21=1,D21<=7),"week",IF(AND(D21=8,D21<=1 5),"2 wks","3 wks"))
I need to expand it if you can help would be much appriciated
1-7 Wk
8 - 15 2 wks
16 - 23 3 wks
24 - 31 1 month
32 - 89 2-3 months
90 - 179 6 months
180 + season

I hope you understand that for the numbers i need the result showing in the
cell
i.e. 1- 7 number showing in cell will answer as week
Thankyou for your assistance in advance
360 + season
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default a if calculation help

Create a 2 column table like this:

1...Week
8...2 wks
16...3 wks
24...1 month
32...2-3 months
90...6 months
180...season

Assume that table is in the range A1:B7

Then:

=LOOKUP(D21,A1:B7)

--
Biff
Microsoft Excel MVP


"FredDave" wrote in message
...
Hi all i have a if calculation which i need to expand but I can't figure
it
out

=IF(AND(D21=1,D21<=7),"week",IF(AND(D21=8,D21<=1 5),"2 wks","3 wks"))
I need to expand it if you can help would be much appriciated
1-7 Wk
8 - 15 2 wks
16 - 23 3 wks
24 - 31 1 month
32 - 89 2-3 months
90 - 179 6 months
180 + season

I hope you understand that for the numbers i need the result showing in
the
cell
i.e. 1- 7 number showing in cell will answer as week
Thankyou for your assistance in advance
360 + season



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default a if calculation help

=LOOKUP(D21,{1,8,16,24,32,90,180},{"wk","2 wks","3 wks","1 month","2-3
months","6 months","season"})


"FredDave" wrote:

Hi all i have a if calculation which i need to expand but I can't figure it
out

=IF(AND(D21=1,D21<=7),"week",IF(AND(D21=8,D21<=1 5),"2 wks","3 wks"))
I need to expand it if you can help would be much appriciated
1-7 Wk
8 - 15 2 wks
16 - 23 3 wks
24 - 31 1 month
32 - 89 2-3 months
90 - 179 6 months
180 + season

I hope you understand that for the numbers i need the result showing in the
cell
i.e. 1- 7 number showing in cell will answer as week
Thankyou for your assistance in advance
360 + season

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
Calculation using IF Bill R Excel Worksheet Functions 6 March 23rd 09 07:46 PM
Multi threaded calculation (multi CPU) - impact on calculation spe Pascal[_2_] Excel Discussion (Misc queries) 1 December 3rd 08 10:46 AM
Calculation dk New Users to Excel 2 June 3rd 07 04:59 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"