Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default 2 part lookup question

I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default 2 part lookup question


Not really sure, but maybe


F1: =IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),"",12)

G1: =
IF(D1="","",IF(ISNA(VLOOKUP(B1,Sheet2!A:F,4,0)),"" ,VLOOKUP(B1,Sheet2!A:F,4,0)))

--
__________________________________
HTH

Bob

"CP" wrote in message
...
I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if
D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default 2 part lookup question

forgot a small part in first question - if A1 does start with GM or STW then
F1 = 6 otherwise it = 12

apologies for that

"Bob Phillips" wrote:


Not really sure, but maybe


F1: =IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),"",12)

G1: =
IF(D1="","",IF(ISNA(VLOOKUP(B1,Sheet2!A:F,4,0)),"" ,VLOOKUP(B1,Sheet2!A:F,4,0)))

--
__________________________________
HTH

Bob

"CP" wrote in message
...
I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if
D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 2 part lookup question

=IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),6,12)

If this post helps click Yes
---------------
Jacob Skaria


"CP" wrote:

forgot a small part in first question - if A1 does start with GM or STW then
F1 = 6 otherwise it = 12

apologies for that

"Bob Phillips" wrote:


Not really sure, but maybe


F1: =IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),"",12)

G1: =
IF(D1="","",IF(ISNA(VLOOKUP(B1,Sheet2!A:F,4,0)),"" ,VLOOKUP(B1,Sheet2!A:F,4,0)))

--
__________________________________
HTH

Bob

"CP" wrote in message
...
I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if
D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default 2 part lookup question

Did not work!! I just get 12 all the time.

Cell A1 is a reference number like GM234B, STW21V or L45
What comes after the initial letters can vary not sure if this affects the
results

"Jacob Skaria" wrote:

=IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),6,12)

If this post helps click Yes
---------------
Jacob Skaria


"CP" wrote:

forgot a small part in first question - if A1 does start with GM or STW then
F1 = 6 otherwise it = 12

apologies for that

"Bob Phillips" wrote:


Not really sure, but maybe


F1: =IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),"",12)

G1: =
IF(D1="","",IF(ISNA(VLOOKUP(B1,Sheet2!A:F,4,0)),"" ,VLOOKUP(B1,Sheet2!A:F,4,0)))

--
__________________________________
HTH

Bob

"CP" wrote in message
...
I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if
D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CP CP is offline
external usenet poster
 
Posts: 64
Default 2 part lookup question

Apologies ignore my last statement - I made a basic error, it works fine many
thanks for the help

"CP" wrote:

Did not work!! I just get 12 all the time.

Cell A1 is a reference number like GM234B, STW21V or L45
What comes after the initial letters can vary not sure if this affects the
results

"Jacob Skaria" wrote:

=IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),6,12)

If this post helps click Yes
---------------
Jacob Skaria


"CP" wrote:

forgot a small part in first question - if A1 does start with GM or STW then
F1 = 6 otherwise it = 12

apologies for that

"Bob Phillips" wrote:


Not really sure, but maybe


F1: =IF(OR(LEFT(A1,2)="GM",LEFT(A1,3)="STW"),"",12)

G1: =
IF(D1="","",IF(ISNA(VLOOKUP(B1,Sheet2!A:F,4,0)),"" ,VLOOKUP(B1,Sheet2!A:F,4,0)))

--
__________________________________
HTH

Bob

"CP" wrote in message
...
I have a two part question to solve and I hope what is written makes sense

1) in the F column - F1 =12 unless A1 starts with either GM or STW
this is to fix a calculation later i would then fill down to cover the F
column

2) the following is in G column but I need to add "ignore calculation if
D1
is blank" then i would fill down to cover the rest of D
=IF(ISNA(VLOOKUP(B20,Sheet2!A:F,4,0)),"",VLOOKUP(B 20,Sheet2!A:F,4,0))

Many 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
Lookup Using Part of a Text Rod Excel Worksheet Functions 1 October 10th 08 11:10 PM
Multi Part Lookup MikeD1224 Excel Discussion (Misc queries) 3 April 18th 08 06:56 PM
2-part LOOKUP...t'were it possible? Arlen Excel Discussion (Misc queries) 4 October 27th 07 05:43 PM
Part Number Lookup Marshall2 Excel Worksheet Functions 2 July 11th 05 08:58 AM
Matrix Query Part II - lookup value Krista F Excel Worksheet Functions 1 April 6th 05 02:18 PM


All times are GMT +1. The time now is 10:46 PM.

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"