#1   Report Post  
Posted to microsoft.public.excel.misc
pdgood
 
Posts: n/a
Default Text recognition


Hi, I'm looking for a formula that recognizes a specific word of text in
a cell and then does a lookup in another column.
Example: B2 lists a type of film such as BASF or AGFA. Columns C,D, and
E represent size dimensions and column F is the square inches of the
corresponding cells in that row. (B2= BASF, C2=8, D2=x, E2=10, F2=80)
So, I'd like to find a formula to put in G2 that would return the
square inches only if BASF appears in B2 and returns 0 or blank if
not.

B C D E F G
BASF 8 X 10 80 80


Many thanks for your help!


--
pdgood
------------------------------------------------------------------------
pdgood's Profile: http://www.excelforum.com/member.php...o&userid=31623
View this thread: http://www.excelforum.com/showthread...hreadid=526601

  #2   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Text recognition


You want to check out VLOOKUP
goto excels help to find out how to do it


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=526601

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Text recognition

If *only* the exact data "BASF" is in B2, try this:

=IF(B2="BASF",F2,"")

If BASF can be combined with other text in B2, you could try this:

=IF(ISNUMBER(SEARCH("BASF",B2)),F2,"")

You can copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"pdgood" wrote in
message ...

Hi, I'm looking for a formula that recognizes a specific word of text in
a cell and then does a lookup in another column.
Example: B2 lists a type of film such as BASF or AGFA. Columns C,D, and
E represent size dimensions and column F is the square inches of the
corresponding cells in that row. (B2= BASF, C2=8, D2=x, E2=10, F2=80)
So, I'd like to find a formula to put in G2 that would return the
square inches only if BASF appears in B2 and returns 0 or blank if
not.

B C D E F G
BASF 8 X 10 80 80


Many thanks for your help!


--
pdgood
------------------------------------------------------------------------
pdgood's Profile:

http://www.excelforum.com/member.php...o&userid=31623
View this thread: http://www.excelforum.com/showthread...hreadid=526601


  #4   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Text recognition

One play which might also suffice ..

Assume we list across in

G1: BASF
F1: AGFA
etc

(these will be the col headers)

then we could put in G2:
=IF(TRIM($B2)="","",IF(TRIM($B2)=G$1,$F2,""))
then copy G2 to F2 (or more, depending)
and then fill down as far as required

That'll give us the returns from col F (square inches)
neatly under each of the headers in G1 across
(it'll return blanks: "" otherwise)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pdgood" wrote in
message ...

Hi, I'm looking for a formula that recognizes a specific word of text in
a cell and then does a lookup in another column.
Example: B2 lists a type of film such as BASF or AGFA. Columns C,D, and
E represent size dimensions and column F is the square inches of the
corresponding cells in that row. (B2= BASF, C2=8, D2=x, E2=10, F2=80)
So, I'd like to find a formula to put in G2 that would return the
square inches only if BASF appears in B2 and returns 0 or blank if
not.

B C D E F G
BASF 8 X 10 80 80


Many thanks for your help!


--
pdgood
------------------------------------------------------------------------
pdgood's Profile:

http://www.excelforum.com/member.php...o&userid=31623
View this thread: http://www.excelforum.com/showthread...hreadid=526601



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
extra help with transpose Raymond75 Excel Discussion (Misc queries) 0 January 12th 06 03:40 PM
Shade cell according to text? Ltat42a Excel Discussion (Misc queries) 0 January 3rd 06 06:37 PM
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
SUMPRODUCT vs Text??? Ken Excel Worksheet Functions 2 April 9th 05 07:21 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


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