Please help with formula

firstWeMeet

Board Regular
Joined
Feb 8, 2011
Messages
200
Hello forum, just looking for help with this formula.
I have row1 which: C1 formula is =SUM(A1+F7-G7) and I want to maintain the cell format like this
25167892.png
but when A1,F7,G7 has no numbers C1 showing "0" I want C1 just show blank cell when the A,F,G1 is 0 number, note that F1 and G1 has a formula too.
 
The "many more" was simply a pointer to suggest you list all the cells.
Use the formula bar to highlight the cells you want to sum and maybe pick them up in groups, eg.
consider
Code:
=IF(AF1>0, SUM(A1:G1,I1:K1,N1:Q1))
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
i.e, ROW1 A1 to J1 then K1 has the formula =IF(K1>0,SUM(A1,C1,E1,G1,I1),"") thats the formula I set, its a circular error. note that A1 to J1 has the possibility to increase from a multiple cells.
 
Upvote 0
have you tried it the way I wrote it?
It is designed to avoid circular reference

Regarding the picking of cells you can try to put them in groups but if it is like every other cell e.g.: A1, B1, D1, G1 etc and like 100 of them. I mark them somehow e.g. put 1 is some row that you are using in column you wish to add to your reference and write macro to concatenate those adresses that contain 1 in row specified. This way you will get this list little bit easier.
If you are not familiar with VBA it just leaves you with picking cell by clicking on them. I can't se any other solution.
 
Upvote 0
Truskawa, yes I tried it already, and its working, but I am in the table and the formula will be long like this.
=Table1[[#This Row],[Unit Price]],Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]]Table1[[#This Row],[Unit Price]], and many more, just a sample only.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,844
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top