Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Trying to create a formula that will sum 5 cells to the right of the
cell in question if the cell the cell in question contains a Numerical value, and that will do nothing if the cell in question contains text. I have gotten as far as: IF(TYPE(1), SUM(C6513:M6513), "") Obviously, "" does not return the same text originally in the cell, but instead a 0. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the cell in question has to contain a value or a formula (or be blank). If
it contains a formula, then it is unclear where you are testing. Instead of saying Cell in question, say if A1 contains text then in cell B6513 display "" else display SUM(C6513:M6513), =if(istext(A1),"",SUM(C6513:M6513)) as an example. -- Regards, Tom Ogilvy " wrote: Trying to create a formula that will sum 5 cells to the right of the cell in question if the cell the cell in question contains a Numerical value, and that will do nothing if the cell in question contains text. I have gotten as far as: IF(TYPE(1), SUM(C6513:M6513), "") Obviously, "" does not return the same text originally in the cell, but instead a 0. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok, let me reword
This is what I have: =IF(N7279=TYPE(1),SUM(C7279:M7279), N7279) In cell O7279 There are two more adjustments needed. If cell N7279 is blank(no value or formula) then O7279 should be blank. Also is there a way to copy the formatting from cell N7279 to O7279 in the same formula? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=type(1)
always returns 1 since the argument you provided (1) is a number =If(N7279="","",IF(type(N7279)=2,"",If(type(N7279) =1,SUM(C7279:M7279),""))) -- Regards, Tom Ogilvy " wrote: Ok, let me reword This is what I have: =IF(N7279=TYPE(1),SUM(C7279:M7279), N7279) In cell O7279 There are two more adjustments needed. If cell N7279 is blank(no value or formula) then O7279 should be blank. Also is there a way to copy the formatting from cell N7279 to O7279 in the same formula? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
text box that will leave only the last 4 digits entered | Excel Discussion (Misc queries) | |||
if=0 then n/a if<0 leave the value in the cell | Excel Worksheet Functions | |||
How do I leave formula cell blank if 2nd reference cell is empty? | Excel Discussion (Misc queries) | |||
How to compose a Leave Table in text & color bar? | Excel Programming | |||
Can you sort text in a column, but leave cell color alone? | New Users to Excel |