Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Change cell formula based on input in different cell

Here is a somewhat unique issue. I am dealing with a variable lead
time on an item and the value entered can be 1, 2, 3...etc for how many
weeks.

The issue is that if the value is 1 then B5=C4. If the value is
changed to 2, then I want B5=D4 and so on. Is there anyway to do this?

Any help is much appreciated.

Thanks,
DtTall

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Change cell formula based on input in different cell

Assuming your input cell is A1, enter in B5:
=OFFSET(B4,0,A1)

Cheers,
--
AP

"DtTall" a écrit dans le message de news:
...
Here is a somewhat unique issue. I am dealing with a variable lead
time on an item and the value entered can be 1, 2, 3...etc for how many
weeks.

The issue is that if the value is 1 then B5=C4. If the value is
changed to 2, then I want B5=D4 and so on. Is there anyway to do this?

Any help is much appreciated.

Thanks,
DtTall



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Change cell formula based on input in different cell

In B5

=CHOOSE(variable_lead_time,C4,D4)

just extend as required

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"DtTall" wrote in message
ps.com...
Here is a somewhat unique issue. I am dealing with a variable lead
time on an item and the value entered can be 1, 2, 3...etc for how many
weeks.

The issue is that if the value is 1 then B5=C4. If the value is
changed to 2, then I want B5=D4 and so on. Is there anyway to do this?

Any help is much appreciated.

Thanks,
DtTall



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Change cell formula based on input in different cell

Long time no see!

"Ardus Petus" wrote in message
...


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Change cell formula based on input in different cell

Been busy getting paid for my developments!

"Bob Phillips" a écrit dans le message de news:
...
Long time no see!

"Ardus Petus" wrote in message
...




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
How do I change cell color in excel based on text input? giffjr13 New Users to Excel 4 April 5th 23 01:05 PM
How to change Font size based upon cell input Ashley McKay Excel Discussion (Misc queries) 5 March 23rd 07 06:44 PM
How do I change the format of a cell based on what I input? Husker87 Excel Worksheet Functions 8 August 19th 05 10:45 PM
data validation to restrict input in cell based on value of cell above that cell NC Excel Programming 2 January 25th 05 07:11 AM
Macro to change list box input range based on selection made in another cell Sue[_6_] Excel Programming 3 October 7th 04 06:45 PM


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