Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tourcat
 
Posts: n/a
Default How to make a cell recognize multiple text strings?

Because a cell can only have 7 "IF" statements, is there a way to
combine multiple text strings into one "IF" statement?

Here is what I have for cell H24:
=IF(E10="LA",7.75,IF(E10="PD",7.75,IF(E10="EA",7.7 5,IF(E10="PDX",7.75,IF(E10="MC",7.75,IF(E10="V",7. 75,IF(E10="PR",7.75,0)))))))

The problem is that I need to have the same criteria for cells E10:I10
in the same cell H24. I have tried this but it doesn't work:
=IF(E10:I10="LA",7.75,IF(E10:I10="PD",7.75,IF(E10: I10="EA",IF(E10:I10="PDX",7.75,IF(E10:I10="MC",7.7 5,IF(E10:I10="V",7.75,IF(E10:I10="PR",7.75,0)))))) )

Any help is welcomed. Thanks.

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You can reduce your formula to a single IF:

=IF(OR(E10={"la","pd","ea","pdx","mc"}),7.75,0)

OR make a list of the text strings in say H1:H5:

Entered as an array with the key combo of CTRL,SHIFT,ENTER:

=IF(OR(E10=H1:H5),7.75,0)

OR, also an array:

=IF(OR(E10:I10=H1:H5),7.75,0)

Biff

-----Original Message-----
Because a cell can only have 7 "IF" statements, is there

a way to
combine multiple text strings into one "IF" statement?

Here is what I have for cell H24:
=IF(E10="LA",7.75,IF(E10="PD",7.75,IF(E10="EA",7. 75,IF

(E10="PDX",7.75,IF(E10="MC",7.75,IF(E10="V",7.75,I F
(E10="PR",7.75,0)))))))

The problem is that I need to have the same criteria for

cells E10:I10
in the same cell H24. I have tried this but it doesn't

work:
=IF(E10:I10="LA",7.75,IF(E10:I10="PD",7.75,IF

(E10:I10="EA",IF(E10:I10="PDX",7.75,IF(E10:I10="MC ",7.75,IF
(E10:I10="V",7.75,IF(E10:I10="PR",7.75,0)))))))

Any help is welcomed. 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
How to make a cell return the formatted value in a text string (i. n.almeida Excel Worksheet Functions 3 February 2nd 05 01:59 PM
How can I make Excel Files save as the text appers in a cell, can. I khan Excel Discussion (Misc queries) 1 February 1st 05 07:34 PM
Cell set to wrap text and blank line -- fix? Fred Holmes Excel Discussion (Misc queries) 0 January 25th 05 07:10 PM
how to hyperlink text to a cell steve New Users to Excel 1 December 14th 04 08:21 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:42 AM.

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"