LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default IF stmt with multiple results

Is there a way to populate more than one cell when a condition is TRUE?

I have an nested IF stmt that checks 1 cell.

=IF(K2="AB",F2-8,IF(K2="AC",F2-7,IF(K2="AD",F2-7,IF(K2="AK",F2-7,IF(K2="AR",F2-7,IF(K2="BP",F2-7,IF(K2="BV",F2-7,IF(K2="BW",F2-7,""))))))))

In English, look at K2 and, depending on the 2-digit code, subtract x from
F2. (I have many more, but am limited to 7 nested stmts.) This works quite
well, with the results going to a blank cell, M2.

The problem is this: I need to populate cells N and O, too. If K2 = AB, for
example, subtract 8 from F2, but ALSO populate the acct exec's name as
N2="last name", O2="first name". Fortunately, these are one-to-one: each
code will only ever have one acct exec and I can hard-code them.

Possible?

Karen F


 
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
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
Multiple results in 1 cell w/ multiple criteria RS Excel Worksheet Functions 0 March 5th 07 08:10 PM
Multiple criteria with multiple results in one cell RS Excel Worksheet Functions 4 March 2nd 07 11:05 PM
Multiple results from multiple criteria using IF function David Platt Excel Discussion (Misc queries) 2 January 15th 07 10:19 AM
Calculate multiple results from multiple input values? Jetta1515 Excel Discussion (Misc queries) 5 June 1st 06 03:09 PM


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