Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Determine which values are = 0 & create string

Hi all,
I have a list of items & values in two columns.... for example

Apple 3
Banana 0
Pear 5
Orange 8
Grapefruit 0

At the bottom of the list, I want to have a cell that will say which
values are zero. For example:

"You have no bananas, grapefruit"

If apple was also = 0 it would say "You have no apples, bananas,
grapefruit"

Is there a way to do this without VBA code? Is it just going to be a
crazy IF statement?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Determine which values are = 0 & create string

Why have you made apple and banana plural in your text comment at the
bottom, but not grapefruit? Not all words are made plural by adding an
s to the end, eg potato, so this can be a problem to achieve.

How many rows of data do you have in your real data?

Pete

On Dec 18, 3:48*pm, wrote:
Hi all,
I have a list of items & values in two columns.... for example

Apple 3
Banana 0
Pear 5
Orange 8
Grapefruit 0

At the bottom of the list, I want to have a cell that will say which
values are zero. *For example:

"You have no bananas, grapefruit"

If apple was also = 0 it would say "You have no apples, bananas,
grapefruit"

Is there a way to do this without VBA code? *Is it just going to be a
crazy IF statement?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Determine which values are = 0 & create string

Sorry, disregard the plurals. I made up that example to simplify my
question - it shouldn't be a problem with the real data.

There are 9 rows that I would have to check if the value is zero.
Basically I want a statement that will say (if any of the 9 are = 0)
-- The following costs are excluded from this scenario: .......

On Dec 18, 10:58*am, Pete_UK wrote:
Why have you made apple and banana plural in your text comment at the
bottom, but not grapefruit? Not all words are made plural by adding an
s to the end, eg potato, so this can be a problem to achieve.

How many rows of data do you have in your real data?

Pete

On Dec 18, 3:48*pm, wrote:

Hi all,
I have a list of items & values in two columns.... for example


Apple 3
Banana 0
Pear 5
Orange 8
Grapefruit 0


At the bottom of the list, I want to have a cell that will say which
values are zero. *For example:


"You have no bananas, grapefruit"


If apple was also = 0 it would say "You have no apples, bananas,
grapefruit"


Is there a way to do this without VBA code? *Is it just going to be a
crazy IF statement?


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
How to determine the values? Eric Excel Discussion (Misc queries) 1 August 24th 08 11:24 AM
How to determine the values? Eric Excel Worksheet Functions 6 May 2nd 08 12:40 PM
determine wheter string has a number in it? Ted Metro Excel Worksheet Functions 5 June 2nd 07 04:18 AM
Create a 'text' string based on whether values appear in other cel Ben Excel Worksheet Functions 4 February 20th 07 10:05 AM
How do I create a crosstab process to determine patterns in surve. trmzr Excel Worksheet Functions 1 October 27th 04 10:20 PM


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