LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
jat jat is offline
external usenet poster
 
Posts: 33
Default macro to calculate or make/update formula

i have the following in cell D2:
"=IF(C2<C4,D4,IF(C2<C5,D5,IF(C2<C6,D6,IF(C2<C7,D7, IF(C2<C8,D8,D9)))))"

basically, in C2 is a value; column B from row 4 down has the lower bracket
and column C from row 4 down has the upper bracket; Column D will have
another value that will calculate back into D2. ex:

MIN MAX RESULT
0 100 28
101 200 25
201 300 22
301 18

and so forth..., if C2 has a value of 223, D2 would show 22. the problem is
sometimes the min and max values will change and the amount of brackets will
also increase or decrease depending on different years, etc.

i need a macro that will autopopulate cell D2 - if possible;

thanx
 
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 to calculate month of last status update Chris Excel Worksheet Functions 6 November 1st 08 01:46 AM
How do I make my macro update each month? MacroLearning Excel Programming 2 November 22nd 06 07:08 PM
Make a formula to calculate the avarage of baseball stats Confused at Work Excel Worksheet Functions 2 May 11th 06 03:05 PM
How do I make a name formula auto update in Excel Sammy Soup Excel Worksheet Functions 3 December 30th 04 05:18 PM
Using Macro to update formula STEVEB Excel Programming 1 October 31st 03 06:46 PM


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