LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default combine three if functions

Hi there this is my first post, i can normally work thing out by going through the forums and tweaking my stuff but im stuck. here is the problem.

i have 3 formulas that work on their own
=IF(ISNUMBER(SEARCH("a",F23)),VLOOKUP(A23,Sheet2!$ A$1:$A$1000:Sheet2!$K$1:$K$1000,9,FALSE),"")

=IF(ISNUMBER(SEARCH("b",F23)),VLOOKUP(A23,Sheet2!$ A$1:$A$1000:Sheet2!$K$1:$K$1000,10,FALSE),"")

=IF(ISNUMBER(SEARCH("c",F23)),VLOOKUP(A23,Sheet2!$ A$1:$A$1000:Sheet2!$K$1:$K$1000,11,FALSE),"")

what i think they say is that if cell f23 contains "a" look up data from cell a23 and insert correct cell from sheet 2.

now this works well if only i didnt need to combine them

what i need is this

if f23 contains a do the vlookup in column 9 if b use column 10 if c use column 11 if 9,10&11 blank leave cell blank

what i came up with is

=IF(ISNUMBER(SEARCH("a",F27)),VLOOKUP(A27,Sheet2!$ A$1:$A$1000:Sheet2!$K$1:$K$1000,9,FALSE),IF(ISNUMB ER(SEARCH("b",F27)),VLOOKUP(A27,Sheet2!$A$1:$A$100 0:Sheet2!$K$1:$K$1000,10,FALSE),IF(ISNUMBER(SEARCH ("c",F27)),VLOOKUP(A27,Sheet2!$A$1:$A$1000:Sheet2! $K$1:$K$1000,11,FALSE),"")))

this works for a and b but not c and deos not leave blank brings up the answer to b.


please can anyone help
 
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 do I combine ISNA and IF functions ottodesque Excel Worksheet Functions 8 August 25th 09 09:01 AM
Combine text functions Kay Excel Discussion (Misc queries) 2 July 13th 09 06:17 PM
How to combine, IF, AND, OR Functions Simony32567 Excel Worksheet Functions 2 May 18th 09 07:31 PM
Possible to combine VLOOKUP and IF(AND) functions? Ihoris Excel Worksheet Functions 1 April 6th 06 09:54 AM
Combine functions? ~suky~ Excel Worksheet Functions 0 February 23rd 06 03:51 PM


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