Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bri Bri is offline
external usenet poster
 
Posts: 4
Default IF function issues w/ empty cells

I have data that needs to be converted and I've tried using excel help for
assistance. Example...
- If cells contain #'s 9 - it needs to return a 2
- If cells contain #'s 3 and <10 - it needs to return a 1
- If cells contain #'s = 0 and <4 - it needs to return a 0
- If cells contain no data / empty - it needs to return a 0
Depending on how I write the formula which has included OR, ISBLANK &
LOOKUP, I only manage to get parts of it to work. Any assistance would be
greatly appreciated. Bri

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default IF function issues w/ empty cells

On Thu, 1 Jan 2009 11:59:01 -0800, Bri
wrote:

I have data that needs to be converted and I've tried using excel help for
assistance. Example...
- If cells contain #'s 9 - it needs to return a 2
- If cells contain #'s 3 and <10 - it needs to return a 1
- If cells contain #'s = 0 and <4 - it needs to return a 0
- If cells contain no data / empty - it needs to return a 0
Depending on how I write the formula which has included OR, ISBLANK &
LOOKUP, I only manage to get parts of it to work. Any assistance would be
greatly appreciated. Bri


Assuming your data are all non negative integers, try this formula:

=LOOKUP(A1,{0,4,10},{0,1,2})

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default IF function issues w/ empty cells

Hi,

Here is a standard IF approach

=IF(A19,2,IF(A13,1,0))

Note your post does not address negative numbers, but here they are teated
the same as 0.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Bri" wrote:

I have data that needs to be converted and I've tried using excel help for
assistance. Example...
- If cells contain #'s 9 - it needs to return a 2
- If cells contain #'s 3 and <10 - it needs to return a 1
- If cells contain #'s = 0 and <4 - it needs to return a 0
- If cells contain no data / empty - it needs to return a 0
Depending on how I write the formula which has included OR, ISBLANK &
LOOKUP, I only manage to get parts of it to work. Any assistance would be
greatly appreciated. Bri

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 want the autofill/drag function to skip empty cells tcmcgee Excel Discussion (Misc queries) 1 October 28th 08 04:27 PM
Dynamic Chart (OFFSET Function) plots empty cells. SJ[_2_] Charts and Charting in Excel 3 August 7th 08 06:14 PM
the countA function is counting everything even empty cells ToniNolen Excel Worksheet Functions 2 September 27th 06 07:42 PM
Excel - Autom. Filter "Empty / Non Empty cells" should come first Rom Excel Discussion (Misc queries) 0 August 10th 05 04:32 PM
How can I convert empty strings to empty cells? Shane Excel Discussion (Misc queries) 2 July 19th 05 12:10 PM


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