Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default auto fill cells with text if value of one cell meets specificcondition

I would like to write a macro that populates rows with different text
whose value depends upon one cell value.

For example if cell A1 = "163", then cell B1 = "BLUE' AND cell C1 =
"$2.95" AND cell D1 = "tennis ball"

Thanks for any feed back!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default auto fill cells with text if value of one cell meets specific cond

Amanda,

Have you looked at using the VLOOKUP function? If your data (i.e. the id
number, color, price, and type) is in a table, then simply use VLOOKUP. So,
you would have a VLOOKUP function in cells B1, C1, and D1. The lookup value
would reference A1, the table array would be wherever your table data is
located, the column index would correspond to the appropriate table column of
the data you want returned (where column 1 has the same type of data as in
cell A1, i.e. the id number), and the range lookup is TRUE for a close match
and FALSE for an exact match.

Best,

Matthew Herbert

"amanda" wrote:

I would like to write a macro that populates rows with different text
whose value depends upon one cell value.

For example if cell A1 = "163", then cell B1 = "BLUE' AND cell C1 =
"$2.95" AND cell D1 = "tennis ball"

Thanks for any feed back!!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default auto fill cells with text if value of one cell meets specificcond

On Nov 11, 3:08*pm, Matthew Herbert
wrote:
Amanda,

Have you looked at using the VLOOKUP function? *If your data (i.e. the id
number, color, price, and type) is in a table, then simply use VLOOKUP. *So,
you would have a VLOOKUP function in cells B1, C1, and D1. *The lookup value
would reference A1, the table array would be wherever your table data is
located, the column index would correspond to the appropriate table column of
the data you want returned (where column 1 has the same type of data as in
cell A1, i.e. the id number), and the range lookup is TRUE for a close match
and FALSE for an exact match.

Best,

Matthew Herbert



"amanda" wrote:
I would like to write a macro that populates rows with different text
whose value depends upon one cell value.


For example if cell A1 = "163", *then cell B1 = "BLUE' AND cell C1 =
"$2.95" AND cell D1 = "tennis ball"


Thanks for any feed back!!
.- Hide quoted text -


- Show quoted text -


Hi Matthew. This worked great. Thank you very much for your help!!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default auto fill cells with text if value of one cell meets specific condition

Do you specifically need a macro?

VLOOKUP worksheet function would do as well.


Gord Dibben MS Excel MVP

On Wed, 11 Nov 2009 12:16:52 -0800 (PST), amanda
wrote:

I would like to write a macro that populates rows with different text
whose value depends upon one cell value.

For example if cell A1 = "163", then cell B1 = "BLUE' AND cell C1 =
"$2.95" AND cell D1 = "tennis ball"

Thanks for any feed back!!


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
Auto fill Cells with text Robzz Excel Worksheet Functions 2 May 11th 10 05:36 PM
Calculate (Auto Fill) cells with numbers and text. Bobby Atkinson Excel Discussion (Misc queries) 3 July 27th 08 03:09 PM
quick ? on how to auto fill text from one cell to another [email protected] Excel Discussion (Misc queries) 9 June 29th 06 01:03 AM
How to auto-fill text based on text in another cell Jason Excel Discussion (Misc queries) 3 February 16th 05 08:40 PM
HOW CAN I AUTO FILL A CELL WITH TEXT FROM ANOTHER WORKSHEET TEXT . waz Excel Worksheet Functions 2 December 29th 04 07:49 PM


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