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 05-20-2008, 12:28 AM
Jeff Harbin
 
Posts: n/a
How to put an Empty Cell in an IF function...

Let me try this a different way...

I am using Excel 2003 and I've got a chart that is linked to data
located on another sheet within the same workbook. It is a weekly
production report and it always records a 0 for the weekends since we do
not produce anything on Saturday or Sunday. The data is extracted from
another source - not manually entered - and will always have the
weekends included. The chart is structured such that the 'Y' axis is
comprised of the values on the Data worksheet in column X, rows 14
through 49 ($X$14:$X$49) and represent the production yields. The 'X'
axis is taken from the Data worksheet in column A, rows 14 through 49
($A$14:$A$49) and represents the production date.

I know that if I clear the contents of the cells that correspond to the
weekends with a 0 production value and the cells that correspond to the
date identifier, I will get exactly what I want.

I conspired to add 2 more columns to the Data worksheet - Adjusted_Date
& Adjusted_Yield. I planned to populate these cells with the
corresponding values from Date & Yield. I thought if I could assign the
new columns - Adjusted_Date & Adjusted_Yield based on the Yield field, I
could get the formatting I want.

However, I am unsure of how to write a formula that will assign an Empty
cell based on the value of another cell.

For example: If the Yield value in Row 14 is 12%, I want the
Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
of Date. On the other side...if the Yield value in Row 14 was 0%, I
want the Adjusted_Yield and the Adjusted_Date to be empty.

Or...am I making this too complicated and there's an easier way to
accomplish what I want.

Thanks.

Jeff
Reply With Quote
  #2 (permalink)  
Old 05-20-2008, 12:36 AM
joeu2004
 
Posts: n/a
Re: How to put an Empty Cell in an IF function...

On May 19, 4:28 pm, Jeff Harbin <prez1...@sbcglobal.net> wrote:
> For example: If the Yield value in Row 14 is 12%, I want the
> Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
> of Date. On the other side...if the Yield value in Row 14 was 0%, I
> want the Adjusted_Yield and the Adjusted_Date to be empty.


Strictly speaking, you can assign a cell to "empty". "Empty" means
there is nothing in the cell: no value, no formula.

You __can__ have a null string ("") as the result. For example, in
the cell for Adjusted_Date:

=if(Yield_value = 12%, Date, "")

Caveat: Excel does not always interpret the null string ("") the same
way that it interprets an empty cell. I cannot think of an example
off-hand. But the point is: you cannot use the ISBLANK() function.
Instead, you test for the null string directly. For example, in
another cell:

=if(Adjusted_Date = "", "", something_else)



On May 19, 4:28*pm, Jeff Harbin <prez1...@sbcglobal.net> wrote:
> Let me try this a different way...
>
> I am using Excel 2003 and I've got a chart that is linked to data
> located on another sheet within the same workbook. *It is a weekly
> production report and it always records a 0 for the weekends since we do
> not produce anything on Saturday or Sunday. *The data is extracted from
> another source - not manually entered - and will always have the
> weekends included. *The chart is structured such that the 'Y' axis is
> comprised of the values on the Data worksheet in column X, rows 14
> through 49 ($X$14:$X$49) and represent the production yields. *The 'X'
> axis is taken from the Data worksheet in column A, rows 14 through 49
> ($A$14:$A$49) and represents the production date.
>
> I know that if I clear the contents of the cells that correspond to the
> weekends with a 0 production value and the cells that correspond to the
> date identifier, I will get exactly what I want.
>
> I conspired to add 2 more columns to the Data worksheet - Adjusted_Date
> & Adjusted_Yield. *I planned to populate these cells with the
> corresponding values from Date & Yield. *I thought if I could assign the
> new columns - Adjusted_Date & Adjusted_Yield based on the Yield field, I
> could get the formatting I want.
>
> However, I am unsure of how to write a formula that will assign an Empty
> cell based on the value of another cell.
>
> For example: *If the Yield value in Row 14 is 12%, I want the
> Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
> of Date. *On the other side...if the Yield value in Row 14 was 0%, I
> want the Adjusted_Yield and the Adjusted_Date to be empty.
>
> Or...am I making this too complicated and there's an easier way to
> accomplish what I want.
>
> Thanks.
>
> Jeff


Reply With Quote
  #3 (permalink)  
Old 05-20-2008, 01:07 AM
Jeff Harbin
 
Posts: n/a
Re: How to put an Empty Cell in an IF function...

Ok. That's what I was afraid of.

Do you know of something I can do with the Chart to skip values that are
equal to zero?

I'm grasping at straws but it's really annoying....

Thanks,



joeu2004 wrote:
> On May 19, 4:28 pm, Jeff Harbin <prez1...@sbcglobal.net> wrote:
>> For example: If the Yield value in Row 14 is 12%, I want the
>> Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
>> of Date. On the other side...if the Yield value in Row 14 was 0%, I
>> want the Adjusted_Yield and the Adjusted_Date to be empty.

>
> Strictly speaking, you can assign a cell to "empty". "Empty" means
> there is nothing in the cell: no value, no formula.
>
> You __can__ have a null string ("") as the result. For example, in
> the cell for Adjusted_Date:
>
> =if(Yield_value = 12%, Date, "")
>
> Caveat: Excel does not always interpret the null string ("") the same
> way that it interprets an empty cell. I cannot think of an example
> off-hand. But the point is: you cannot use the ISBLANK() function.
> Instead, you test for the null string directly. For example, in
> another cell:
>
> =if(Adjusted_Date = "", "", something_else)
>
>
>
> On May 19, 4:28 pm, Jeff Harbin <prez1...@sbcglobal.net> wrote:
>> Let me try this a different way...
>>
>> I am using Excel 2003 and I've got a chart that is linked to data
>> located on another sheet within the same workbook. It is a weekly
>> production report and it always records a 0 for the weekends since we do
>> not produce anything on Saturday or Sunday. The data is extracted from
>> another source - not manually entered - and will always have the
>> weekends included. The chart is structured such that the 'Y' axis is
>> comprised of the values on the Data worksheet in column X, rows 14
>> through 49 ($X$14:$X$49) and represent the production yields. The 'X'
>> axis is taken from the Data worksheet in column A, rows 14 through 49
>> ($A$14:$A$49) and represents the production date.
>>
>> I know that if I clear the contents of the cells that correspond to the
>> weekends with a 0 production value and the cells that correspond to the
>> date identifier, I will get exactly what I want.
>>
>> I conspired to add 2 more columns to the Data worksheet - Adjusted_Date
>> & Adjusted_Yield. I planned to populate these cells with the
>> corresponding values from Date & Yield. I thought if I could assign the
>> new columns - Adjusted_Date & Adjusted_Yield based on the Yield field, I
>> could get the formatting I want.
>>
>> However, I am unsure of how to write a formula that will assign an Empty
>> cell based on the value of another cell.
>>
>> For example: If the Yield value in Row 14 is 12%, I want the
>> Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
>> of Date. On the other side...if the Yield value in Row 14 was 0%, I
>> want the Adjusted_Yield and the Adjusted_Date to be empty.
>>
>> Or...am I making this too complicated and there's an easier way to
>> accomplish what I want.
>>
>> Thanks.
>>
>> Jeff

>

Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 01:25 AM
Dave Peterson
 
Posts: n/a
Re: How to put an Empty Cell in an IF function...

You could use a formula like:

=if(a14="",na(),12%)
=if(a14="",na(),theadjusteddatehere)

Charts will not show the =na() values as 0.

You could either use this in another (hidden???) column--or use conditional
formatting to hide the N/A's (white font on a white fill???) so that the cell
looks empty.

Jeff Harbin wrote:
>
> Let me try this a different way...
>
> I am using Excel 2003 and I've got a chart that is linked to data
> located on another sheet within the same workbook. It is a weekly
> production report and it always records a 0 for the weekends since we do
> not produce anything on Saturday or Sunday. The data is extracted from
> another source - not manually entered - and will always have the
> weekends included. The chart is structured such that the 'Y' axis is
> comprised of the values on the Data worksheet in column X, rows 14
> through 49 ($X$14:$X$49) and represent the production yields. The 'X'
> axis is taken from the Data worksheet in column A, rows 14 through 49
> ($A$14:$A$49) and represents the production date.
>
> I know that if I clear the contents of the cells that correspond to the
> weekends with a 0 production value and the cells that correspond to the
> date identifier, I will get exactly what I want.
>
> I conspired to add 2 more columns to the Data worksheet - Adjusted_Date
> & Adjusted_Yield. I planned to populate these cells with the
> corresponding values from Date & Yield. I thought if I could assign the
> new columns - Adjusted_Date & Adjusted_Yield based on the Yield field, I
> could get the formatting I want.
>
> However, I am unsure of how to write a formula that will assign an Empty
> cell based on the value of another cell.
>
> For example: If the Yield value in Row 14 is 12%, I want the
> Adjusted_Yield to be 12% and the Adjusted_Date to be equal to the value
> of Date. On the other side...if the Yield value in Row 14 was 0%, I
> want the Adjusted_Yield and the Adjusted_Date to be empty.
>
> Or...am I making this too complicated and there's an easier way to
> accomplish what I want.
>
> Thanks.
>
> Jeff


--

Dave Peterson
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 04:55 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:
Loans | Gas Suppliers | Loans | Auto Loans | N73



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