Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula in Excel Help Please

I need a formula the says, If these cells F4:K4 have blanks then they = 0 if
there are no blanks then = $62.50. How do i do this?
--
TMansell
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formula in Excel Help Please

Hi,

This is far from clear but try this

=IF(COUNTA(F4:K4)=6,62.5,0)

Mike

"TMansell" wrote:

I need a formula the says, If these cells F4:K4 have blanks then they = 0 if
there are no blanks then = $62.50. How do i do this?
--
TMansell

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Formula in Excel Help Please

Not sure I understand. You have cells F4:K4 with either blanks or values.
You want to change theses cells or other cells?

Easy case: change other cells
In some other cell (say F5) enter =IF(ISBLANK(F4),0,62.50)
Format the cell as currency
Copy the formula across the row

Change the actual cells: that will require VBA

Sub tryme()
myrow = 4
For mycol = 6 To 10
If Cells(myrow, mycol).Value = "" Or Cells(myrow, mycol).Value = 0 Then
Cells(myrow, mycol).Value = 0
Else
Cells(myrow, mycol).Value = 62.5
Cells(myrow, mycol).NumberFormat = "$#,##0.00_);($#,##0.00)"
End If
Next
End Sub

New to VBA? See one or both of these:
David McRitchie's site on "getting started" with VBA
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Debra Dalgleish's "Adding Code to a Workbook"
http://www.contextures.com:80/xlvba01.html

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"TMansell" wrote in message
...
I need a formula the says, If these cells F4:K4 have blanks then they = 0
if
there are no blanks then = $62.50. How do i do this?
--
TMansell



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jas Jas is offline
external usenet poster
 
Posts: 42
Default Formula in Excel Help Please



"TMansell" wrote:

I need a formula the says, If these cells F4:K4 have blanks then they = 0 if
there are no blanks then = $62.50. How do i do this?
--
TMansell



I'm not sure if I understand, but an if statement will work, If (F4="
",0,62.50) for that single cell, but you have more than a single cell. So
normally, when I'm using an if statement it reflects a given cell, but it has
a column of data, you are showing more than just one column of data, given
your cell references F4:K4). F4:F66, would be more like it, then you just
copy down, for each cell. If you have two columns of data, that wouldn't
change the formula but it would changed the cell reference in the formula.
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
Excel formula to copy/paste formula needed please. colwyn Excel Discussion (Misc queries) 4 October 22nd 08 11:27 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM


All times are GMT +1. The time now is 02:23 AM.

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"