Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Make them work on the Each cell Value

Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default Make them work on the Each cell Value

Try
=IF(LEFT(A2,1)="1","City","")&IF(LEFT(A2,1)="2","R oskill","")&IF(LEFT(A2,1)="4","Wiri","")&IF(LEFT(A 2,1)="5","Shore","")&IF(LEFT(A2,1)="6","Orewa","") &IF(LEFT(A2,1)="7","Swanson","")&IF(LEFT(A2,1)="8" ,"Panmure","")

I have put & between each pair. & concatenates the strings... The formula
above joins the results of each IF together which gives you the desired answer

_____________________
Click 'Yes' if this helped.

"Steved" wrote:

Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Make them work on the Each cell Value

Hi,

Make a table with 1 throught 8 in the first column and the words you want in
the second column. Say you do this in D1:E8

then use the formula
=LOOKUP(LEFT(A2),D1:E8)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Steved" wrote:

Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Make them work on the Each cell Value

Create a 2 column table like this:

........E........F
1.....1.....City
2.....2.....Roskill
3.....4.....Wiri
4.....5.....Shore
5.....6.....Orewa
6.....7.....Swanson
7.....8.....Panmure

Then use a formula like this:

A1 = 5845

=IF(COUNTIF(E1:E7,LEFT(A1)),VLOOKUP(--LEFT(A1),E1:F7,2,0),"")

I notice you're missing a condition for number 3?

--
Biff
Microsoft Excel MVP


"Steved" wrote in message
...
Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this
method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Make them work on the Each cell Value

=LOOKUP(LEFT(A2),D1:E8)

Did you actually try that formula?

I suggest you slow down and try to provide accurate solutions rather than
just posting as many replies as you can. Quality beats quantity every time.

--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Make a table with 1 throught 8 in the first column and the words you want
in
the second column. Say you do this in D1:E8

then use the formula
=LOOKUP(LEFT(A2),D1:E8)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Steved" wrote:

Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this
method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Make them work on the Each cell Value

Hello T.Valko

Thankyou, There was a 3 "Papakura" but we sold the land, hence moved the
business to 4 "Wiri"

Thankyou.

Steved


"T. Valko" wrote:

Create a 2 column table like this:

........E........F
1.....1.....City
2.....2.....Roskill
3.....4.....Wiri
4.....5.....Shore
5.....6.....Orewa
6.....7.....Swanson
7.....8.....Panmure

Then use a formula like this:

A1 = 5845

=IF(COUNTIF(E1:E7,LEFT(A1)),VLOOKUP(--LEFT(A1),E1:F7,2,0),"")

I notice you're missing a condition for number 3?

--
Biff
Microsoft Excel MVP


"Steved" wrote in message
...
Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this
method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Make them work on the Each cell Value

=VLOOKUP(LEFT(A2)+0,{1,"City";2,"Roskill";4,"Wiri" ;5,"Shore";6,"Orewa";7,"Swanson";8,"Panmure"},2,)



"Steved" wrote:

Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Make them work on the Each cell Value

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steved" wrote in message
...
Hello T.Valko

Thankyou, There was a 3 "Papakura" but we sold the land, hence moved the
business to 4 "Wiri"

Thankyou.

Steved


"T. Valko" wrote:

Create a 2 column table like this:

........E........F
1.....1.....City
2.....2.....Roskill
3.....4.....Wiri
4.....5.....Shore
5.....6.....Orewa
6.....7.....Swanson
7.....8.....Panmure

Then use a formula like this:

A1 = 5845

=IF(COUNTIF(E1:E7,LEFT(A1)),VLOOKUP(--LEFT(A1),E1:F7,2,0),"")

I notice you're missing a condition for number 3?

--
Biff
Microsoft Excel MVP


"Steved" wrote in message
...
Hello from Steved

in Cell A1 I have 5854, now picking up the first digit which is 5 it
will
type in "Shore"

Please how do I ask the bottom Formulas to do this please
=IF(LEFT(A2,1)="1","City","")+=IF(LEFT(A2,1)="2"," Roskill","") as this
method
leaves me a true or false .

=IF(LEFT(A2,1)="1","City","")
=IF(LEFT(A2,1)="2","Roskill","")
=IF(LEFT(A2,1)="4","Wiri","")
=IF(LEFT(A2,1)="5","Shore","")
=IF(LEFT(A2,1)="6","Orewa","")
=IF(LEFT(A2,1)="7","Swanson","")
=IF(LEFT(A2,1)="8","Panmure","")

Thankyou.






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
Make table query will work in datasheet view but will not make tab WildlyHarry Excel Discussion (Misc queries) 0 August 28th 07 03:06 PM
Cant make it work Bama_Buc New Users to Excel 2 August 14th 06 08:43 PM
can't make it work, I need help kynhart Excel Worksheet Functions 2 October 19th 05 05:58 AM
How can i make this work within an IF statement: (41<=Cell<=46) velopoav New Users to Excel 3 April 11th 05 02:15 AM
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM


All times are GMT +1. The time now is 05:38 PM.

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"