Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JeffinSC
 
Posts: n/a
Default Can an if then formula be done for this?


If the value of F1-F2 is = to or between 5 and 9 add 1 to cell A1
If the value of F1-F2 is = to or between 10 and 14 add 1 to cell A1 and
1 to Cell B1
If the value of F1-F2 is = to or between 15 and 19 add 2 to cell A1 and
1 to cell B1
If the value of F1-F2 is = to or greater than 20 add 2 to cell A1 and 2
to cell B1.
If the value of F1-F2 is = to or between -5 and -9 subtract 1 from cell
A1
If the value of F1-F2 is = to or between -10 and -14 subtract 1 from
cell A1 and subtract 1 from cell B1
If the value of F1-F2 is =to or between -15 and -19 subtract 2 from
cell A1 and subtract 1 from cell B1.
If the value of F1-F2 is = to or less than -20 subtract 2 from cell A1
and 2 from cell B1

For values between -4 and 4 I would want no changes.

Can this be done? I am new to Excel.

Thanks,
Jeff


--
JeffinSC
------------------------------------------------------------------------
JeffinSC's Profile: http://www.excelforum.com/member.php...o&userid=30617
View this thread: http://www.excelforum.com/showthread...hreadid=502708

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Anne Troy
 
Posts: n/a
Default Can an if then formula be done for this?

Yes. The best way I could show you was to just do it. IF formulas would be
pretty tough, so I used a VLOOKUP, which would allow you to change the
values if you wanted at any time.
See: www.officearticles.com/downloads/sampleIFs.xls and also
http://www.officearticles.com/excel/...soft_excel.htm
for how to name the range, etc. Your lookup table does NOT have to be on the
same sheet, and you can even hide it if you want.
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"JeffinSC" wrote in
message ...

If the value of F1-F2 is = to or between 5 and 9 add 1 to cell A1
If the value of F1-F2 is = to or between 10 and 14 add 1 to cell A1 and
1 to Cell B1
If the value of F1-F2 is = to or between 15 and 19 add 2 to cell A1 and
1 to cell B1
If the value of F1-F2 is = to or greater than 20 add 2 to cell A1 and 2
to cell B1.
If the value of F1-F2 is = to or between -5 and -9 subtract 1 from cell
A1
If the value of F1-F2 is = to or between -10 and -14 subtract 1 from
cell A1 and subtract 1 from cell B1
If the value of F1-F2 is =to or between -15 and -19 subtract 2 from
cell A1 and subtract 1 from cell B1.
If the value of F1-F2 is = to or less than -20 subtract 2 from cell A1
and 2 from cell B1

For values between -4 and 4 I would want no changes.

Can this be done? I am new to Excel.

Thanks,
Jeff


--
JeffinSC
------------------------------------------------------------------------
JeffinSC's Profile:
http://www.excelforum.com/member.php...o&userid=30617
View this thread: http://www.excelforum.com/showthread...hreadid=502708



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 Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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