#1   Report Post  
Posted to microsoft.public.excel.misc
ack ack is offline
external usenet poster
 
Posts: 1
Default if statement help

I have a formula that won't let me enter in any more if statements. Can you
help
This is what I have:

=IF(D19=P7,V7,IF(D19=P8,V8,IF(D19=P9,V9,IF(D19=P10 ,V10,""))))

I have 8 of these if statements in the one cell and it won't let me put in
any more. Is there a different formula that I can use or modify this one?

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default if statement help

Try it like this:

=IF(COUNTIF(P7:P14,D19),INDEX(V7:V14,MATCH(D19,P7: P14,0)),"")

Biff

"ack" wrote in message
...
I have a formula that won't let me enter in any more if statements. Can you
help
This is what I have:

=IF(D19=P7,V7,IF(D19=P8,V8,IF(D19=P9,V9,IF(D19=P10 ,V10,""))))

I have 8 of these if statements in the one cell and it won't let me put in
any more. Is there a different formula that I can use or modify this one?

Thanks!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default if statement help

Guessing from the pattern ...

=IF(ISNA(VLOOKUP(D19,P7:V18,7,0)),"", VLOOKUP(D19,P7:V18,7,0))

??

"ack" wrote:

I have a formula that won't let me enter in any more if statements. Can you
help
This is what I have:

=IF(D19=P7,V7,IF(D19=P8,V8,IF(D19=P9,V9,IF(D19=P10 ,V10,""))))

I have 8 of these if statements in the one cell and it won't let me put in
any more. Is there a different formula that I can use or modify this one?

Thanks!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 740
Default if statement help

guessing also from the pattern,

=IF(D19=P7:P14,V7:V14,"")

*array* entered with ctrl+shft+ent.

regards,
driller
--
*****
birds of the same feather flock together..



"ack" wrote:

I have a formula that won't let me enter in any more if statements. Can you
help
This is what I have:

=IF(D19=P7,V7,IF(D19=P8,V8,IF(D19=P9,V9,IF(D19=P10 ,V10,""))))

I have 8 of these if statements in the one cell and it won't let me put in
any more. Is there a different formula that I can use or modify this one?

Thanks!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default if statement help

Not sure what you're thinking but that won't work.

Biff

"driller" wrote in message
...
guessing also from the pattern,

=IF(D19=P7:P14,V7:V14,"")

*array* entered with ctrl+shft+ent.

regards,
driller
--
*****
birds of the same feather flock together..



"ack" wrote:

I have a formula that won't let me enter in any more if statements. Can
you
help
This is what I have:

=IF(D19=P7,V7,IF(D19=P8,V8,IF(D19=P9,V9,IF(D19=P10 ,V10,""))))

I have 8 of these if statements in the one cell and it won't let me put
in
any more. Is there a different formula that I can use or modify this one?

Thanks!!





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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
Help with an IF statement punter Excel Discussion (Misc queries) 5 June 19th 06 01:28 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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