Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default =IF, If only I knew the answer

Hi all,
I'm trying to come up with the correct function to check if the text in cell in an adjacent cell matches a value from a list of possible values. And if it does, return a value from another list of possible values. Does that make Sense????
I tried :=IF(E4=$H$4,G4," ")(E4=$H$5,$G$5," ")(E4=$H$6,$G$6," ")(E4=$H$7,$G$7," ")(E4=$H$8,$G$8," ")(E4=$H$9,$G$9," ")(E4=$H$10,$G$10," ")(E4=$H$11,$G$11," ")(E4=$H$12,$G$12," ")
The attachment is a sample of my table.
Any Help much appreciated.
Attached Images
File Type: pdf =IF.pdf (6.3 KB, 846 views)
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by markd038 View Post
Hi all,
I'm trying to come up with the correct function to check if the text in cell in an adjacent cell matches a value from a list of possible values. And if it does, return a value from another list of possible values. Does that make Sense????
I tried :=IF(E4=$H$4,G4," ")(E4=$H$5,$G$5," ")(E4=$H$6,$G$6," ")(E4=$H$7,$G$7," ")(E4=$H$8,$G$8," ")(E4=$H$9,$G$9," ")(E4=$H$10,$G$10," ")(E4=$H$11,$G$11," ")(E4=$H$12,$G$12," ")
The attachment is a sample of my table.
Any Help much appreciated.
Hi,

If you could post an example of this but in an Excel file it would be far easier to help you out with this.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default =IF, If only I knew the answer

Hi Mark,

Am Sun, 10 Jun 2012 02:34:08 +0000 schrieb markd038:

I tried :=IF(E4=$H$4,G4," ")(E4=$H$5,$G$5," ")(E4=$H$6,$G$6,"
")(E4=$H$7,$G$7," ")(E4=$H$8,$G$8," ")(E4=$H$9,$G$9,"
")(E4=$H$10,$G$10," ")(E4=$H$11,$G$11," ")(E4=$H$12,$G$12," ")


try:
=IFERROR(INDEX($G$4:$G$18,MATCH(E4,$H$4:$H$18,0)), "")

for excel versions earlier than 2007:
=IF(ISERROR(MATCH(E4,$H$4:$H$18,0)),"",INDEX($G$4: $G$18,MATCH(E4,$H$4:$H$18,0)))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default =IF, If only I knew the answer

On Saturday, June 9, 2012 9:34:08 PM UTC-5, markd038 wrote:
Hi all,
I'm trying to come up with the correct function to check if the text in
cell in an adjacent cell matches a value from a list of possible values.
And if it does, return a value from another list of possible values.
Does that make Sense????
I tried :=IF(E4=$H$4,G4," ")(E4=$H$5,$G$5," ")(E4=$H$6,$G$6,"
")(E4=$H$7,$G$7," ")(E4=$H$8,$G$8," ")(E4=$H$9,$G$9,"
")(E4=$H$10,$G$10," ")(E4=$H$11,$G$11," ")(E4=$H$12,$G$12," ")
The attachment is a sample of my table.
Any Help much appreciated.


+-------------------------------------------------------------------+
|Filename: =IF.pdf |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=404|
+-------------------------------------------------------------------+



--
markd038


In additon to the file, post the logic of what you want with examples....
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
Default =IF, If only I knew the answer

On Sun, 10 Jun 2012 02:34:08 +0000, markd038 wrote:

Hi all,
I'm trying to come up with the correct function to check if the text in
cell in an adjacent cell matches a value from a list of possible values.
And if it does, return a value from another list of possible values.
Does that make Sense????


Yes, but you don't want a bunch of nested IFs, you want VLOOKUP or
HLOOKUP.



--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
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
Calculator Answer Doesn't Match Excel Answer GwenH Excel Discussion (Misc queries) 3 October 20th 08 10:17 AM
This should be simple if I knew any better... [email protected] Excel Programming 1 May 13th 08 10:56 PM
v Column??? In an interview, asked if i knew it...HELP justywusty Excel Discussion (Misc queries) 9 April 17th 06 04:41 PM
I THOUGHT I knew what I was doing RJB Charts and Charting in Excel 7 September 12th 05 08:37 PM
i cant get the exact answer e.g answer is 13.49% i got 13.00% zai Excel Discussion (Misc queries) 3 June 9th 05 01:00 PM


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