Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default adding a code to a cell?

H alli,

I'm trying to devise a way to do the following...

Cell A1 has "12.34" in it. I would like B1 to show "ABCD"
Cell A2 has "123.45" in it. I would like B2 to show "ABCDE"
Cell A3 has "12.50" in it. I would like B3 to show "ABEZ"

Any thoughts on how to achieve this either through VBA or a cell formula?

TIA.
BC


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default adding a code to a cell?

Hi BC

Put all corresponding logic in a table and a VLOOKUP formula in Cell B1. See
Help on VLOOKUP.

HTH. Best wishes Harald

"Brad" skrev i melding
...
H alli,

I'm trying to devise a way to do the following...

Cell A1 has "12.34" in it. I would like B1 to show "ABCD"
Cell A2 has "123.45" in it. I would like B2 to show "ABCDE"
Cell A3 has "12.50" in it. I would like B3 to show "ABEZ"

Any thoughts on how to achieve this either through VBA or a cell formula?

TIA.
BC




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default adding a code to a cell?

Hi Harold,

That was my first instinct. However I'm pretty green when it comes to
Vlookup's so some help would be appreciated.

Initially my table on sheet 2 looked like...

colA | colB

1 | A

2 | B

3 | C

4 | D

5 | E

6 | F

7 | G

8 | H

9 | I

0 | Z

How do I then do a Vlookup to produce the desired result? Bearing in mind,
the numbers I want to code in column A (coded letters in column B) on sheet
1 are not necessarily uniform, or logical. Cell A1 could have "97.95",
"129.77" or another equally random combination.

TIA for any help.

BC

"Harald Staff" wrote in message
...
Hi BC

Put all corresponding logic in a table and a VLOOKUP formula in Cell B1.
See
Help on VLOOKUP.

HTH. Best wishes Harald

"Brad" skrev i melding
...
H alli,

I'm trying to devise a way to do the following...

Cell A1 has "12.34" in it. I would like B1 to show "ABCD"
Cell A2 has "123.45" in it. I would like B2 to show "ABCDE"
Cell A3 has "12.50" in it. I would like B3 to show "ABEZ"

Any thoughts on how to achieve this either through VBA or a cell formula?

TIA.
BC






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
Adding code to a macro Excel Helps Excel Worksheet Functions 2 January 23rd 08 06:15 PM
adding and subtracting using vb code ASU Excel Discussion (Misc queries) 2 October 7th 06 09:48 AM
Automate adding code Marshall Barton Excel Programming 4 September 8th 04 01:50 AM
Adding image with code Monica Excel Programming 0 January 19th 04 01:31 PM
Adding reference in code Andrew O'Brien Excel Programming 7 November 4th 03 09:43 PM


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