Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ann ann is offline
external usenet poster
 
Posts: 210
Default IF / Else Statement?

This should be simple, but I'm drawing a blank here. I four different
categories with four different values and need to populate my field (in this
case, N19) based on the value for that category:

IF H19="IET" then C4, or H19="BUS" then C7, or H19="DSO" then C10, or
H19="BPO" then C13.

Can you assist in providing an appropriate formula structure for the above?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default IF / Else Statement?

Hi,

The syntax of an IF-THEN-ELSE worksheet-function in excel is:
= IF( condition , then_value, else_value )
and you can nest up to 7 of them.
That is, in your case:

=IF(H19="IET",C4,
IF(H19="BUS",C7,IF(H19="DSO",C10,IF(H19="BPO",C13, "invalid"))))

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Ann" wrote:

This should be simple, but I'm drawing a blank here. I four different
categories with four different values and need to populate my field (in this
case, N19) based on the value for that category:

IF H19="IET" then C4, or H19="BUS" then C7, or H19="DSO" then C10, or
H19="BPO" then C13.

Can you assist in providing an appropriate formula structure for the above?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default IF / Else Statement?

=if(H19 = "IET", C4, if(H19="BUS", C7, if(H19="DSO", C10, if(H19="BPO",
C13)))).
--
HTH...

Jim Thomlinson


"Ann" wrote:

This should be simple, but I'm drawing a blank here. I four different
categories with four different values and need to populate my field (in this
case, N19) based on the value for that category:

IF H19="IET" then C4, or H19="BUS" then C7, or H19="DSO" then C10, or
H19="BPO" then C13.

Can you assist in providing an appropriate formula structure for the above?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default IF / Else Statement?

Sorry missed the last else...

=IF(H19 = "IET", C4, IF(H19="BUS", C7, IF(H19="DSO", C10, IF(H19="BPO",""))))
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

=if(H19 = "IET", C4, if(H19="BUS", C7, if(H19="DSO", C10, if(H19="BPO",
C13)))).
--
HTH...

Jim Thomlinson


"Ann" wrote:

This should be simple, but I'm drawing a blank here. I four different
categories with four different values and need to populate my field (in this
case, N19) based on the value for that category:

IF H19="IET" then C4, or H19="BUS" then C7, or H19="DSO" then C10, or
H19="BPO" then C13.

Can you assist in providing an appropriate formula structure for the above?

  #5   Report Post  
Posted to microsoft.public.excel.programming
ann ann is offline
external usenet poster
 
Posts: 210
Default IF / Else Statement?

Great! Thank you both for the help.

"Jim Thomlinson" wrote:

Sorry missed the last else...

=IF(H19 = "IET", C4, IF(H19="BUS", C7, IF(H19="DSO", C10, IF(H19="BPO",""))))
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

=if(H19 = "IET", C4, if(H19="BUS", C7, if(H19="DSO", C10, if(H19="BPO",
C13)))).
--
HTH...

Jim Thomlinson


"Ann" wrote:

This should be simple, but I'm drawing a blank here. I four different
categories with four different values and need to populate my field (in this
case, N19) based on the value for that category:

IF H19="IET" then C4, or H19="BUS" then C7, or H19="DSO" then C10, or
H19="BPO" then C13.

Can you assist in providing an appropriate formula structure for the above?



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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 10:22 PM.

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"