Computing.Net > Forums > Office Software > Conditional Formatting 1

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Conditional Formatting 1

Reply to Message Icon

Name: logobogo
Date: September 18, 2009 at 08:46:22 Pacific
OS: Windows XP
Product: Microsoft Excel 2003 (full product)
Subcategory: Microsoft Office
Tags: Conditional Formatting, macro, vba
Comment:

have a spreadsheet that contains serial numbers in one column. I would like to create a formula in another column such that when I enter a specifc serial number, then a product name would be entered into another column.

So, for example, let's say the serial number was 001 and the product was Apple. Then for every 001 that I enter or that Excel finds in column A, Column B would display the word Apple.

I would like to do this for 17 serial numbers...

I asked this in another area, and I believe 7 was the limit. Is there a way I can get around this?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: September 18, 2009 at 09:05:33 Pacific
Reply:

Use VLOOKUP.


0

Response Number 2
Name: DerbyDad03
Date: September 18, 2009 at 09:14:15 Pacific
Reply:

Just curious...

How is this question related to "Conditional Formatting"?


0

Response Number 3
Name: DerbyDad03
Date: September 18, 2009 at 09:24:46 Pacific
Reply:

Razor2.3:

Did you notice that the syntax at the techonthenet site doesn't match the Excel Help files? Specifically, I'm referring to the names for the VLOOKUP arguments.

Perhaps it would eliminate any confusion if you provided links directly to MS's online help files...unless you really hate MS that much. <g>

At least that way to user would see the same syntax as that used within Excel itself, such as the help text that pops up as you are entering the formula.

http://office.microsoft.com/en-us/e...


0

Response Number 4
Name: Razor2.3
Date: September 18, 2009 at 09:33:51 Pacific
Reply:

DerbyDad03: unless you really hate MS that much.
Honestly, if it's not on MSDN, I'm probably not going to see it.


0

Response Number 5
Name: DerbyDad03
Date: September 18, 2009 at 09:55:36 Pacific
Reply:

re: Honestly, if it's not on MSDN, I'm probably not going to see it.

I don't understand. How does that relate to posting links to MS help sites instead of techonthenet?


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: September 18, 2009 at 10:15:28 Pacific
Reply:

DerbyDad03: How does that relate to posting links to MS help sites instead of techonthenet?
For MS, I first check MSDN. If I don't find something, I just Google it. techonthenet was the first hit, and its information was valid.

Also, I'm honestly not seeing an appreciable difference between the two links.


0

Response Number 7
Name: DerbyDad03
Date: September 18, 2009 at 10:57:20 Pacific
Reply:

re: I'm honestly not seeing an appreciable difference between the two links

I guess it depends on your definition of appreciable. <g>

techonthenet uses what I can only assume are their own names for the VLOOKUP arguments:

- value
- table_array
- index_number
- not_exact_match

Maybe it's a copyright issue.

The MS site uses the names that a user would find in the Excel Help files:

- lookup_value
- table_array
- col_index_num
- range_lookup

If people are discussing/describing the function in a forum or an email, it might get confusing it both parties are using different names for the arguments.

"Set the range_lookup argument to 0"

"What range_lookup argument? I'm looking at the syntax at techonthenet and I don't see that argument included in the function description."

Since MS "owns" the function, I think their argument names should be the ones to use.

re: techonthenet was the first hit, and its information was valid

Interesting. If I Google vlookup, the MS site is first, techonthenet is second.



0

Response Number 8
Name: logobogo
Date: September 18, 2009 at 11:18:40 Pacific
Reply:

Thanks for the help. I guess I need to learn how to do a VLookUp.


0

Response Number 9
Name: Razor2.3
Date: September 18, 2009 at 11:28:23 Pacific
Reply:

DerbyDad03: Since MS "owns" the function, I think their argument names should be the ones to use.
Or we could just go by the argument positions, and avoid all confusion. :P


0

Response Number 10
Name: Humar
Date: September 18, 2009 at 12:11:09 Pacific
Reply:

Hi,

To use Vlookup, use two columns for your 17 serial numbers and descriptions, they can be on another sheet in your workbook so that they don't interfere with your data input.

Column A is headed serial number and column B is headed description (the actual names don't matter).
The order does matter - the value you use to search for a description must be to the left of the description, e.g., Serial numbers in column A and descriptions in column B.

Create all 17 pairs of serial numbers and descriptions.
Lets say this is on Sheet2 in the range Sheet2!A2:B18 (17 pairs)

On sheet 1 if you enter a serial number in cell C3, put the following formula in cell D3:
=VLOOKUP(C3,Sheet2!$A$2:$B$18,2)
Note the $ signs in the reference to your range of data pairs.
This will allow you to drag the formula down from D3, but still refer to the same range of data pairs.
The '2' at the end of the formula is because the result of your lookup is in the second column of the data pairs.

This should get you started.

If your serial numbers in the data pairs are not in numerical order you will have to add another parameter to the Vlookup function - see the help file (lots of info on help files already !)

A quick way to make creating your vlookup formula easier is to type ='Vlookup( ' in the cell and then click on the fx button next to the formula bar. (You need to at least enter the first '(' after the function name for this to work)
In the box that comes up click in each of the sub-boxes to get extra descriptions about each part of the formula.

Regards


0

Response Number 11
Name: logobogo
Date: September 18, 2009 at 12:22:01 Pacific
Reply:

OMG, thank you soo soo much.


0

Response Number 12
Name: Humar
Date: September 18, 2009 at 12:37:47 Pacific
Reply:

Hi,

Looking again at the formula I suggested, it would be better if it was
=VLOOKUP(C3,Sheet2!$A$2:$B$18,2,FALSE)
False means there must be an exact match.
Without it, if you enter a serial number that isn't in the table, it will return the last description it finds.

Hope it works OK for you

Regards


0

Sponsored Link
Ads by Google
Reply to Message Icon

Renaming folder in VB scr... Slooooow scanning


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Conditional Formatting 1

excel question - conditional format www.computing.net/answers/office/excel-question-conditional-format/7299.html

Conditional Formatting in Excel www.computing.net/answers/office/conditional-formatting-in-excel/7820.html

EXCEL 2007 Conditional Formatting help www.computing.net/answers/office/excel-2007-conditional-formatting-help/9277.html