Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default If-Then Formula

=if(condition,action,if(condition,action,If(condit ion,action,"")))

=if(Variables!C12="A1",Variables!D52,If(Variables! C12="A2",Variables!D54,If(
.. . .

--
Regards,
Tom Ogilvy

"Phil Hageman" wrote in message
...
This is a re-post of a previous request, explained differently - I need a

single formula to do the following:

Variables is the name of a worksheet
This formula is located in another worksheet named Scorecard

If Variables!C12="A1", then populate cell with Variables!D53
If Variables!C12="A2", then populate cell with Variables!D54
If Variables!C12="A3", then populate cell with Variables!D55
If Variables!C12 is blank, then populate cell with blank.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default If-Then Formula

The answers by Bob and Tom to the question by Phil were very clear. Thank you. It also helped me.

An add-on question, if you don't mind...

Is there a way to also make each of the actions change the format of the cell - such as fill color and font color?
--
Robert


"Tom Ogilvy" wrote:

=if(condition,action,if(condition,action,If(condit ion,action,"")))

=if(Variables!C12="A1",Variables!D52,If(Variables! C12="A2",Variables!D54,If(
.. . .

--
Regards,
Tom Ogilvy

"Phil Hageman" wrote in message
...
This is a re-post of a previous request, explained differently - I need a

single formula to do the following:

Variables is the name of a worksheet
This formula is located in another worksheet named Scorecard

If Variables!C12="A1", then populate cell with Variables!D53
If Variables!C12="A2", then populate cell with Variables!D54
If Variables!C12="A3", then populate cell with Variables!D55
If Variables!C12 is blank, then populate cell with blank.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default If-Then Formula

The answers by Bob and Tom to Phil's question were very clear. They helped me also. Thank You!

An add-on question, if you don't mind...

Is there also a way to conditionally change the cell format at the same time as we change the value - such as font and fill color?
--
Robert


"Tom Ogilvy" wrote:

=if(condition,action,if(condition,action,If(condit ion,action,"")))

=if(Variables!C12="A1",Variables!D52,If(Variables! C12="A2",Variables!D54,If(
.. . .

--
Regards,
Tom Ogilvy

"Phil Hageman" wrote in message
...
This is a re-post of a previous request, explained differently - I need a

single formula to do the following:

Variables is the name of a worksheet
This formula is located in another worksheet named Scorecard

If Variables!C12="A1", then populate cell with Variables!D53
If Variables!C12="A2", then populate cell with Variables!D54
If Variables!C12="A3", then populate cell with Variables!D55
If Variables!C12 is blank, then populate cell with blank.




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
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 03:14 AM.

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"