#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bke808
 
Posts: n/a
Default IF Functions


I'm not sure if I'm approaching this from the right angle, but here's
what I'm trying to do. You guys seem to be very helpful so if I'm in
headed in the wrong direction, please show me what I need to do.

I want to type in a number that corresponds to a location for a
specific retail store location and in the next cell, automatically fill
in the name of the store.

EX: If I type in 8 in the store number column, in the store name
column, I want "Pompano Beach" to auto fill. If I type in 4 in the
store number column, I want "Dallas" to auto fill....etc for all of our
store locations.

I've been trying =IF(K5=4,"Dallas",M5) where K5 is the cell associated
with the store number and M5 references a blank cell. I can get that to
work ok, but how do I add multiple conditions to one cell? If I try
=IF(K5=4,"Dallas",M5)=OR(IF(K5=8,"Pompano Beach",M5)), but I get a
#VALUE!.

I've read MS help and tried to search the forums, but I'm coming up
blank. Thanks for your help.
BKE


--
bke808
------------------------------------------------------------------------
bke808's Profile: http://www.excelforum.com/member.php...o&userid=31553
View this thread: http://www.excelforum.com/showthread...hreadid=512476

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default IF Functions


Your best bet is to create a two column table, e.g. store numbers in
a1:a10 and corresponding store names in b1:b10 then use this formula

=VLOOKUP(K5,$a$1:$b$10,2,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=512476

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bke808
 
Posts: n/a
Default IF Functions


That's exactly what I need. Thanks!!!
BKE

daddylonglegs Wrote:
Your best bet is to create a two column table, e.g. store numbers in
a1:a10 and corresponding store names in b1:b10 then use this formula

=VLOOKUP(K5,$a$1:$b$10,2,0)



--
bke808
------------------------------------------------------------------------
bke808's Profile: http://www.excelforum.com/member.php...o&userid=31553
View this thread: http://www.excelforum.com/showthread...hreadid=512476

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
Can I get Excel to determine the line curve formula without graph. Cadelima Excel Discussion (Misc queries) 8 December 20th 05 09:57 PM
User-defined functions created in Excel 2000 fail in Excel 2003 goodguy Excel Discussion (Misc queries) 1 October 3rd 05 07:04 PM
Database functions should use criteria in formula, as 1-2-3 does 123user Excel Worksheet Functions 8 September 29th 05 08:57 PM
Visible rows and functions that work tracy Excel Worksheet Functions 2 August 19th 05 05:25 AM
Confused about arrays and ranges in functions Llurker Excel Worksheet Functions 0 July 7th 05 05:44 AM


All times are GMT +1. The time now is 11:22 PM.

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"