Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Question About IF Function and LOOKUP

I am programming a spreadsheet for work which is a defect code list sent to
customers to authorize returns.

The defect codes are 3 digit numbers that correspond to that particular
defect... here is my current formula which works well but is cut off at seven
arguments:

=IF(E3=301,"Phone Locked (PIN)",IF(E3=332,"Incorrect
Software",IF(E3=360,"Service Required",IF(E3=363,"Cannot Detect SIM
Card",IF(E3=371,"No Data Service",IF(E3=407,"Cosmetic Defect-Trackball",
IF(E3=414,"Debris/Fingerprints/Moisture Spots", IF(E3=415, "Display Lens
Scratched","N/A"))))))))

It's working very well, but I have about 35 different arguments I need to
enter.

Can anyone assist on a formula I can use? The current IF function works
great for what I need but I need more arguments.

Thanks!
Ryan Ford


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Question About IF Function and LOOKUP

Create a table than use vlookup to return the "If true statement"

Your Table in A1:B35
A B
301 Phone Locked (PIN)
332 Incorrect Software
363 Cannot Detect SIM Card

then your vlookup:
=vlookup(E3,A1:B15,2,False)

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Ryan F" wrote:

I am programming a spreadsheet for work which is a defect code list sent to
customers to authorize returns.

The defect codes are 3 digit numbers that correspond to that particular
defect... here is my current formula which works well but is cut off at seven
arguments:

=IF(E3=301,"Phone Locked (PIN)",IF(E3=332,"Incorrect
Software",IF(E3=360,"Service Required",IF(E3=363,"Cannot Detect SIM
Card",IF(E3=371,"No Data Service",IF(E3=407,"Cosmetic Defect-Trackball",
IF(E3=414,"Debris/Fingerprints/Moisture Spots", IF(E3=415, "Display Lens
Scratched","N/A"))))))))

It's working very well, but I have about 35 different arguments I need to
enter.

Can anyone assist on a formula I can use? The current IF function works
great for what I need but I need more arguments.

Thanks!
Ryan Ford


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Question About IF Function and LOOKUP

You can use VLOOKUP instead of multiple IFs. First of all, you need to
set up a table somewhere which lists your defect codes in one column
and the description in the next column, like this:

301 Phone Locked (PIN)
332 Incorrect Software
360 Service Required
363 Cannot Detect SIM Card
371 No Data Service
407 Cosmetic Defect-Trackball
414 Debris/Fingerprints/Moisture Spots
415 Display Lens Scratched

and so on. Suppose you put these in columns Y and Z. Then you can
replace your formula with this:

=VLOOKUP(E3,Y:Z,2,0)

Just add more codes to the bottom of your table as required.

Hope this helps.

Pete

On Jan 20, 3:14*pm, Ryan F <Ryan
wrote:
I am programming a spreadsheet for work which is a defect code list sent to
customers to authorize returns.

The defect codes are 3 digit numbers that correspond to that particular
defect... here is my current formula which works well but is cut off at seven
arguments:

=IF(E3=301,"Phone Locked (PIN)",IF(E3=332,"Incorrect
Software",IF(E3=360,"Service Required",IF(E3=363,"Cannot Detect SIM
Card",IF(E3=371,"No Data Service",IF(E3=407,"Cosmetic Defect-Trackball",
IF(E3=414,"Debris/Fingerprints/Moisture Spots", IF(E3=415, "Display Lens
Scratched","N/A"))))))))

It's working very well, but I have about 35 different arguments I need to
enter.

Can anyone assist on a formula I can use? *The current IF function works
great for what I need but I need more arguments.

Thanks!
Ryan Ford




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Question About IF Function and LOOKUP

If you use ENTIRE columns it may come back to haunt you.
=VLOOKUP(E3,Y:Z,2,0)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Pete_UK" wrote in message
...
You can use VLOOKUP instead of multiple IFs. First of all, you need to
set up a table somewhere which lists your defect codes in one column
and the description in the next column, like this:

301 Phone Locked (PIN)
332 Incorrect Software
360 Service Required
363 Cannot Detect SIM Card
371 No Data Service
407 Cosmetic Defect-Trackball
414 Debris/Fingerprints/Moisture Spots
415 Display Lens Scratched

and so on. Suppose you put these in columns Y and Z. Then you can
replace your formula with this:

=VLOOKUP(E3,Y:Z,2,0)

Just add more codes to the bottom of your table as required.

Hope this helps.

Pete

On Jan 20, 3:14 pm, Ryan F <Ryan
wrote:
I am programming a spreadsheet for work which is a defect code list sent
to
customers to authorize returns.

The defect codes are 3 digit numbers that correspond to that particular
defect... here is my current formula which works well but is cut off at
seven
arguments:

=IF(E3=301,"Phone Locked (PIN)",IF(E3=332,"Incorrect
Software",IF(E3=360,"Service Required",IF(E3=363,"Cannot Detect SIM
Card",IF(E3=371,"No Data Service",IF(E3=407,"Cosmetic Defect-Trackball",
IF(E3=414,"Debris/Fingerprints/Moisture Spots", IF(E3=415, "Display Lens
Scratched","N/A"))))))))

It's working very well, but I have about 35 different arguments I need to
enter.

Can anyone assist on a formula I can use? The current IF function works
great for what I need but I need more arguments.

Thanks!
Ryan Ford


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Question About IF Function and LOOKUP

Thank you very much guys... I did look at the LOOKUP help pages but whoever
writes that stuff couldn't be more confusing! Thank you very much for all of
your help!

"Don Guillett" wrote:

If you use ENTIRE columns it may come back to haunt you.
=VLOOKUP(E3,Y:Z,2,0)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Pete_UK" wrote in message
...
You can use VLOOKUP instead of multiple IFs. First of all, you need to
set up a table somewhere which lists your defect codes in one column
and the description in the next column, like this:

301 Phone Locked (PIN)
332 Incorrect Software
360 Service Required
363 Cannot Detect SIM Card
371 No Data Service
407 Cosmetic Defect-Trackball
414 Debris/Fingerprints/Moisture Spots
415 Display Lens Scratched

and so on. Suppose you put these in columns Y and Z. Then you can
replace your formula with this:

=VLOOKUP(E3,Y:Z,2,0)

Just add more codes to the bottom of your table as required.

Hope this helps.

Pete

On Jan 20, 3:14 pm, Ryan F <Ryan
wrote:
I am programming a spreadsheet for work which is a defect code list sent
to
customers to authorize returns.

The defect codes are 3 digit numbers that correspond to that particular
defect... here is my current formula which works well but is cut off at
seven
arguments:

=IF(E3=301,"Phone Locked (PIN)",IF(E3=332,"Incorrect
Software",IF(E3=360,"Service Required",IF(E3=363,"Cannot Detect SIM
Card",IF(E3=371,"No Data Service",IF(E3=407,"Cosmetic Defect-Trackball",
IF(E3=414,"Debris/Fingerprints/Moisture Spots", IF(E3=415, "Display Lens
Scratched","N/A"))))))))

It's working very well, but I have about 35 different arguments I need to
enter.

Can anyone assist on a formula I can use? The current IF function works
great for what I need but I need more arguments.

Thanks!
Ryan Ford



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
lookup question Jonathan Horvath Excel Worksheet Functions 8 July 9th 08 07:10 AM
Lookup question dtb Excel Worksheet Functions 1 June 8th 08 01:24 AM
LookUp Question Carl Excel Worksheet Functions 2 September 1st 06 04:29 PM
LOOKUP question DJ Excel Worksheet Functions 5 October 11th 05 02:01 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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