#1   Report Post  
Junior Member
 
Posts: 2
Default If Formula

I would like to create a formula that looks at four days on hand criteria and returns a value based on a band of days
Ex: if the lookup value is <=30 return "35" if the lookup value is between 36 and 40 return "25", if the lookup value is between 41 and 44 return "15" and if the lookup value is above 45 return "0"
any help is most appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default If Formula

Hi David,

Am Wed, 15 Oct 2014 16:41:38 +0100 schrieb Davidgberg:

I would like to create a formula that looks at four days on hand
criteria and returns a value based on a band of days
Ex: if the lookup value is <=30 return "35" if the lookup value is
between 36 and 40 return "25", if the lookup value is between 41 and 44
return "15" and if the lookup value is above 45 return "0"


and what about the values between 31 and 35?
Try:
=VLOOKUP(A1,{0,35;36,25;41,15;45,0},2,1)


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default If Formula

Hi David,

Am Wed, 15 Oct 2014 17:56:18 +0200 schrieb Claus Busch:

=VLOOKUP(A1,{0,35;36,25;41,15;45,0},2,1)


have a look:
https://onedrive.live.com/?cid=9378A...121822A3%21326
for the workbook "David"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
Formula autofill to cells below – formula arguments are cell areas in different columns [email protected] Excel Discussion (Misc queries) 1 September 7th 12 09:15 PM
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 12:00 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"