#1   Report Post  
Annerobbo
 
Posts: n/a
Default excel formulas

Hi

I need to write a formula that if a cell on a worksheet contains a number a
cell on a different worksheet within the workbook returns a different number.
There are 5 different numbers - can someone help please.

Thanks in advance

Anne
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Bit light on detail. Essentially it is

=(A1=1,Sheet2!A1,IF(A1=2,Sheet2!B1,IF(...)))

--
HTH

Bob Phillips

"Annerobbo" wrote in message
...
Hi

I need to write a formula that if a cell on a worksheet contains a number

a
cell on a different worksheet within the workbook returns a different

number.
There are 5 different numbers - can someone help please.

Thanks in advance

Anne



  #3   Report Post  
Annerobbo
 
Posts: n/a
Default



"Annerobbo" wrote:

Hi I probably wasn't very clear!!!

On sheet 1 in cell E7 to E700 it may have A0014A to A0014G. Depending what
is in that cell on sheet 3 in the same workbook I need to convert this to a
different number eg A0014A will become W123, A0014B will become ENG, A0014C
will become FF37, A0014D will become FF46, A0014E will become Route 3, A0014F
will become Piccadilly and A0014G will become SWIM 111. Hope this is more
explainatory.

Thanks
  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(Sheet3!E7="A0014A","W123",IF(Sheet3!E7="A0014B ,"ENG", ...

and so on, copy down to E700


--
HTH

Bob Phillips

"Annerobbo" wrote in message
...


"Annerobbo" wrote:

Hi I probably wasn't very clear!!!

On sheet 1 in cell E7 to E700 it may have A0014A to A0014G. Depending what
is in that cell on sheet 3 in the same workbook I need to convert this to

a
different number eg A0014A will become W123, A0014B will become ENG,

A0014C
will become FF37, A0014D will become FF46, A0014E will become Route 3,

A0014F
will become Piccadilly and A0014G will become SWIM 111. Hope this is more
explainatory.

Thanks



  #5   Report Post  
Annerobbo
 
Posts: n/a
Default


Tried that

Like this??
=IF(Timesheets!E7="A0014A","W123",IF(Timesheets!E7 ="A0014B","ENG",IF(Timesheets!E7="A0014C","FF37",I F(Timesheets!E7="A0014D","FF46,IF(Timesheets!E7="A 0014E","ROUTE 3",IF(Timesheets!E7="A0014F","PICCADDILLY")

And all I got was

The formula you typed contains an error.

Should I have more ) in??







  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 21 Sep 2005 02:52:03 -0700, Annerobbo
wrote:



"Annerobbo" wrote:

Hi I probably wasn't very clear!!!

On sheet 1 in cell E7 to E700 it may have A0014A to A0014G. Depending what
is in that cell on sheet 3 in the same workbook I need to convert this to a
different number eg A0014A will become W123, A0014B will become ENG, A0014C
will become FF37, A0014D will become FF46, A0014E will become Route 3, A0014F
will become Piccadilly and A0014G will become SWIM 111. Hope this is more
explainatory.

Thanks


Try this:

=IF(COUNTIF(ConvTbl,Sheet1!E7)=0,"",VLOOKUP(Sheet1 !E7,ConvTbl,2,0))

and copy down 693 rows.

ConvTbl is a named range which looks like:

A0014A W123
A0014B ENG
A0014C FF37
A0014D FF46
A0014E Route 3
A0014F Piccadilly
A0014G SWIM 111


You may substitute a range reference, or you may substitute the array constant.

Also, depending on your regional settings, you may need to substitute
semicolons for the commas in the above formula.




--ron
  #7   Report Post  
Max
 
Posts: n/a
Default

Perhaps try a VLOOKUP ?
(averts the nested IF limit, and easier to maintain)

In say, Sheet1
Set-up a reference table
in cols A and B, from row1 down:

A0014A W123
A0014B ENG
A0014C FF37
etc

Then we could use in say, Sheet2's B2:

=IF(ISNA(MATCH(Timesheets!E7,Sheet1!$A:$A,0)),
"",VLOOKUP(Timesheets!E7,Sheet1!$A:$B,2,0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Annerobbo" wrote in message
...

Tried that

Like this??

=IF(Timesheets!E7="A0014A","W123",IF(Timesheets!E7 ="A0014B","ENG",IF(Timeshe
ets!E7="A0014C","FF37",IF(Timesheets!E7="A0014D"," FF46,IF(Timesheets!E7="A00
14E","ROUTE 3",IF(Timesheets!E7="A0014F","PICCADDILLY")

And all I got was

The formula you typed contains an error.

Should I have more ) in??



  #8   Report Post  
Bob Phillips
 
Posts: n/a
Default

Like this

=IF(Timesheets!E7="A0014A","W123",IF(Timesheets!E7 ="A0014B","ENG",IF(Timeshe
ets!E7="A0014C","FF37",IF(Timesheets!E7="A0014D"," FF46",IF(Timesheets!E7="A0
014E","ROUTE 3",IF(Timesheets!E7="A0014F","PICCADDILLY"))))) )

--
HTH

Bob Phillips

"Annerobbo" wrote in message
...

Tried that

Like this??

=IF(Timesheets!E7="A0014A","W123",IF(Timesheets!E7 ="A0014B","ENG",IF(Timeshe
ets!E7="A0014C","FF37",IF(Timesheets!E7="A0014D"," FF46,IF(Timesheets!E7="A00
14E","ROUTE 3",IF(Timesheets!E7="A0014F","PICCADDILLY")

And all I got was

The formula you typed contains an error.

Should I have more ) in??







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
Printing Excel Formulas without file paths updating Kim Excel Discussion (Misc queries) 0 August 18th 05 04:55 PM
Simple formulas in existing Excel 2002 no longer working. AllieB Excel Worksheet Functions 3 May 3rd 05 04:14 PM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
Problems with Excel formulas when 2002 upgraded to XP Kathi McGraw Excel Worksheet Functions 0 November 16th 04 05:27 PM


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