Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
wuwu
 
Posts: n/a
Default Regarding IF function or vLOOKUP function

I have two questions.

First,
See the below data.

123456 BOOKA
234555 BOOKB
345678 BOOKC
848599 BOOKD
111100 BOOKE
758844 BOOKF
877290 BOOKG
585858 BOOKH

I want : When I type 123456 in a cell, the cell will be changed to BOOKA
automatically. When I type 234555, the cell will be changed to BOOKB.........
How can do this request using IF fuction or vLOOKUP

Question 2.

How can I use IF or other functions to do ........

I have data in cell A1 (123456), and B1 (500pcs)
now, I would like to use IF or other functions to set that If A1 =123456 and
B1= 500pcs, C1 would be shown 20KGS automatically.

--
wuwu
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
Question 1: You can't achieve this in the SAME cell with formulas. This
requires VBA. Maybe the following is what you're looking for (using a
listbox + VBA Code)
http://www.contextures.com/excelfiles.html
search for: Data Validation "Columns"

Question 2:
Where do you have these combinations tored (column C of your table?) Or
how is this calculated?

--
Regards
Frank Kabel
Frankfurt, Germany

"wuwu" schrieb im Newsbeitrag
...
I have two questions.

First,
See the below data.

123456 BOOKA
234555 BOOKB
345678 BOOKC
848599 BOOKD
111100 BOOKE
758844 BOOKF
877290 BOOKG
585858 BOOKH

I want : When I type 123456 in a cell, the cell will be changed to

BOOKA
automatically. When I type 234555, the cell will be changed to

BOOKB.........
How can do this request using IF fuction or vLOOKUP

Question 2.

How can I use IF or other functions to do ........

I have data in cell A1 (123456), and B1 (500pcs)
now, I would like to use IF or other functions to set that If A1

=123456 and
B1= 500pcs, C1 would be shown 20KGS automatically.

--
wuwu


  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You could use the AutoCorrect feature to change the numbers to words.
For example:
Choose ToolsAutoCorrect Options
In the Replace box, type: 123456
In the With box, type: BOOKA
Click Add, and enter the next code
Click OK when finished.

Note: This codes will apply through the other Office applications, such
as Word, on your computer.

Question 2: You could create a table of weights for each item, and use
the VLOOKUP function to return the correct values. For example, your
table could be:

Code Item Weight
123456 BOOKA 20
234555 BOOKB 15

Select all the cells in this table
Click in the Name box at the left end of the Formula Bar
Type a name for the list, e.g. ItemList
Press the Enter key to complete the naming.

In cell A1, type a code from the list
In cell B1, type: =VLOOKUP(A1,ItemList,2,0)
In cell B1, type: =VLOOKUP(A1,ItemList,3,0)

There's information on VLookup in Excel's Help, and he

http://www.contextures.com/xlFunctions02.html



wuwu wrote:
I have two questions.

First,
See the below data.

123456 BOOKA
234555 BOOKB
345678 BOOKC
848599 BOOKD
111100 BOOKE
758844 BOOKF
877290 BOOKG
585858 BOOKH

I want : When I type 123456 in a cell, the cell will be changed to BOOKA
automatically. When I type 234555, the cell will be changed to BOOKB.........
How can do this request using IF fuction or vLOOKUP

Question 2.

How can I use IF or other functions to do ........

I have data in cell A1 (123456), and B1 (500pcs)
now, I would like to use IF or other functions to set that If A1 =123456 and
B1= 500pcs, C1 would be shown 20KGS automatically.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
VLOOKUP and AND function Chris Excel Worksheet Functions 2 November 11th 04 11:37 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
vlookup function in excel referencing an access table AJN Excel Worksheet Functions 1 November 7th 04 07:09 PM
vlookup and IF function cambridge Excel Worksheet Functions 5 October 28th 04 08:29 PM


All times are GMT +1. The time now is 12:18 AM.

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"