Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-2008, 11:58 PM
StargateFanNotAtHome
 
Posts: n/a
If text string, then cell has 0 placed in it?

If there is a text string in cell G2, how can J2 be made to be "0".

I don't know how to do this either with conditional formatting or via
a formula. I managed to get this far:
=IF($G2>0,"0")
but thsi doesn't work if there is no specific text string in G2 and
the regular data is there so that an actual price must be in that cell
vs. that formula.

It's tricky to explain. If the row has a regular product, then the
cell in column J would have a list price in it. But in some cases,
there will be a text string, specifically:

"ITEMS REQUESTED FROM GENERAL STOCK"

so the pertinent cell in column J for that row would just have a zero
in it so the rest of the formulas in the sheet work.

How can this be done, though?

Thx. :oD

Reply With Quote
  #2 (permalink)  
Old 09-03-2008, 12:23 AM
Dave Peterson
 
Posts: n/a
Re: If text string, then cell has 0 placed in it?

Maybe...

=if($g2<>"",0,"")

And I changed the text "0" to the number 0.

StargateFanNotAtHome wrote:
>
> If there is a text string in cell G2, how can J2 be made to be "0".
>
> I don't know how to do this either with conditional formatting or via
> a formula. I managed to get this far:
> =IF($G2>0,"0")
> but thsi doesn't work if there is no specific text string in G2 and
> the regular data is there so that an actual price must be in that cell
> vs. that formula.
>
> It's tricky to explain. If the row has a regular product, then the
> cell in column J would have a list price in it. But in some cases,
> there will be a text string, specifically:
>
> "ITEMS REQUESTED FROM GENERAL STOCK"
>
> so the pertinent cell in column J for that row would just have a zero
> in it so the rest of the formulas in the sheet work.
>
> How can this be done, though?
>
> Thx. :oD


--

Dave Peterson
Reply With Quote
  #3 (permalink)  
Old 09-03-2008, 06:35 AM
Joerg Mochikun
 
Posts: n/a
Re: If text string, then cell has 0 placed in it?

Results in "0" if G2 is text or blank, otherwise shows number value of G2:
=N(G2)

Results in "0" if G2 is text, blank cell if G2 is blank, otherwise shows
number value of G2:
=IF(ISBLANK(G2),"",N(G2))

Cheers,
JM


"StargateFanNotAtHome" <IDon'tAcceptSpam@NoJunkMail.com> wrote in message
news:ntgrb4pg5pek5pp2ngc6pldd9qoahv7n2f@4ax.com...
> If there is a text string in cell G2, how can J2 be made to be "0".
>
> I don't know how to do this either with conditional formatting or via
> a formula. I managed to get this far:
> =IF($G2>0,"0")
> but thsi doesn't work if there is no specific text string in G2 and
> the regular data is there so that an actual price must be in that cell
> vs. that formula.
>
> It's tricky to explain. If the row has a regular product, then the
> cell in column J would have a list price in it. But in some cases,
> there will be a text string, specifically:
>
> "ITEMS REQUESTED FROM GENERAL STOCK"
>
> so the pertinent cell in column J for that row would just have a zero
> in it so the rest of the formulas in the sheet work.
>
> How can this be done, though?
>
> Thx. :oD
>



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:01 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Card Consolidation | Personal Loans | MPAA | Project cars sale | Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114