Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default How to: If D4 = Yes then Calculate C4/11, if D4 = no leave blank

Hi everyone,

Basically I am making a purchases journal on excel and I want to be able to
click a check box or just type in Y/N and if the box is checked or it is 'Y'
then excel will divide the price by 11 and display in say E4.
If the box is unchecked, it displays blank or N/A or something to that
effect.

Thankyou
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How to: If D4 = Yes then Calculate C4/11, if D4 = no leave blank

Here's how you can achieve this:
  1. First, select cell E4 where you want the result to be displayed.
  2. Next, go to the "Formulas" tab in the ribbon and click on "Insert Function".
  3. In the "Insert Function" dialog box, type
    Code:
    IF
    in the search bar and select it from the list of functions.
  4. In the "Logical_test" field, enter the following formula:
    Code:
    D4="Yes"
  5. In the "Value_if_true" field, enter the following formula:
    Code:
    C4/11
  6. In the "Value_if_false" field, enter "" (two double quotes with nothing in between).
  7. Click "OK" to close the dialog box and the result will be displayed in cell E4.

Now, whenever you enter "Yes" in cell D4, the result in cell E4 will be calculated as C4/11. If you enter anything else in cell D4, cell E4 will display a blank cell.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How to: If D4 = Yes then Calculate C4/11, if D4 = no leave blank

Hi,

Try this

=IF(D4="Yes",C4/11,"")

Mike

"Nate" wrote:

Hi everyone,

Basically I am making a purchases journal on excel and I want to be able to
click a check box or just type in Y/N and if the box is checked or it is 'Y'
then excel will divide the price by 11 and display in say E4.
If the box is unchecked, it displays blank or N/A or something to that
effect.

Thankyou

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default How to: If D4 = Yes then Calculate C4/11, if D4 = no leave blank

Create a Data validation list in D4 with source TRUE,FALSE
and enter in E4:
=IF(D4,C4/11,"")

Regards,
Stefi

€žNate€ť ezt Ă*rta:

Hi everyone,

Basically I am making a purchases journal on excel and I want to be able to
click a check box or just type in Y/N and if the box is checked or it is 'Y'
then excel will divide the price by 11 and display in say E4.
If the box is unchecked, it displays blank or N/A or something to that
effect.

Thankyou

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default How to: If D4 = Yes then Calculate C4/11, if D4 = no leave bla

Thanks for the replies everyone.

Stefi, if you don't mind, could you please walk me though the data
validation list.
I have tried this step and I am finding the list wizard a little confusing,
namely: where the data is on my list and setting the source as TRUE,FALSE
thanks.



"Stefi" wrote:

Create a Data validation list in D4 with source TRUE,FALSE
and enter in E4:
=IF(D4,C4/11,"")

Regards,
Stefi

€žNate€ť ezt Ă*rta:

Hi everyone,

Basically I am making a purchases journal on excel and I want to be able to
click a check box or just type in Y/N and if the box is checked or it is 'Y'
then excel will divide the price by 11 and display in say E4.
If the box is unchecked, it displays blank or N/A or something to that
effect.

Thankyou



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default How to: If D4 = Yes then Calculate C4/11, if D4 = no leave bla

I'm translating back screen scripts to English therefore they may differ from
those you see on your screen!
Select the cell you want to create DV list for!
DataValidationSelect List option from Allowed drop down list (the upper one)
Enter allowed values in Source field! If you want to allow a list of
constant values (like TRUE and FALSE in your case), enter them separated by
list separator set in your Windows Regional settings (comma in English
version, semicolon in some national language versions).
If you have allowed values in a range of cells, e.g. cells A1 contains TRUE
and A2 contains FALSE) then enter range reference in Source field: A1:A2 (You
can do that also by selecting the range with mouse).
Hope this helps!

Regards,
Stefi

€žNate€ť ezt Ă*rta:

Thanks for the replies everyone.

Stefi, if you don't mind, could you please walk me though the data
validation list.
I have tried this step and I am finding the list wizard a little confusing,
namely: where the data is on my list and setting the source as TRUE,FALSE
thanks.



"Stefi" wrote:

Create a Data validation list in D4 with source TRUE,FALSE
and enter in E4:
=IF(D4,C4/11,"")

Regards,
Stefi

€žNate€ť ezt Ă*rta:

Hi everyone,

Basically I am making a purchases journal on excel and I want to be able to
click a check box or just type in Y/N and if the box is checked or it is 'Y'
then excel will divide the price by 11 and display in say E4.
If the box is unchecked, it displays blank or N/A or something to that
effect.

Thankyou

  #7   Report Post  
Junior Member
 
Location: Richards Bay - South Africa
Posts: 1
Angry

Thank you for all the help so far, I've learn't alot, however I think I've 'snookered' myself... I'm trying to build a costing spreadsheet... If the answer in a specific area is "YES" then I would like the formula to continue... If the answer is "NO" then that specific part of the formula should be halted.

The costing spreadsheet if for my sign shop and I would like the estimator just to type in the size and then tell the programme whether there's a steel frame, poles, paint, etc. and if so continue with the calculations...

Here's the first part... =IF(B5="YES",D5) Here's the formula for D5... =SUM(D2*2+D3*2) but I do not want this formula to occur if the answer is "NO"... This formula I wrote just comes up with "FALSE"... =IF(B5="YES"=SUM(D2*2+D3*2),) even if the answer is "YES"
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
leave cells blank #2 Mary Excel Worksheet Functions 2 September 1st 05 11:29 PM
Leave Cells Blank Mary Excel Worksheet Functions 3 September 1st 05 09:39 PM
leave a cell blank nicolas Excel Worksheet Functions 1 August 2nd 05 01:55 PM
To Leave Cell blank Please Steved Excel Worksheet Functions 7 August 1st 05 12:20 AM
LEAVE BLANK IF NEGATIVE Carolan Excel Worksheet Functions 3 January 14th 05 05:01 PM


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