I'd like to Round the data in my worksheet. I need to add #round(cell,-3) where cell has a unique function that I don't want to disturb.
AFAIK, I can't use any of the formulas extant in Excel.
Ideas?
Apply a custom format to the cells as 0, (Solution by John Walkenbach)
Related
Requirement :
->green color cell need sumproduct of cells where 90% found in 1st Column with its activity wtg.
->pink color cell need sumproduct of cells where 95% found in 2nd Column with its activity wtg.
->blue cell need sumproduct of cells where 100% found in 3rd Column with its activity wtg.
Just an extract pasted here, need a dynamic formula to use it in a large data table.
Thanks in advance.
You can use SUMPRODUCT() like below formula then drag across as you need.
=SUMPRODUCT(($A$3:$A$7)*(B3:B7=B1))
You can also use SUMIFS() like
=SUMIFS($A$3:$A$7,B3:B7,B1)
When I have a formula in a cell (the list is about 8,000 long, I go to try and sort it from most to least, however when I do this it will not sort, I believe it is because there is a formula in the cell, is doing it the normal way of clicking on the cell(s) and using the ribbon. Is there a special way of doing it when a formula is involved?
Thanks
Yes, by using absolute reference in your formulas, i.e. "$" for the rows. Since you are changing the order of the rows when you filter you need to make the reference static.
The table below is sorted by "Largest to smallest."
Another solution could be to copy the area and paste in a new sheet as "values"
In Data validation list I defined formulas: ,=1,5+($B$1/$B$2),=2+($B$1/$B$2)*2,=2,7+($B$1/$B$2)*3 ..... and works well for me because I can see all formulas in dropdown list as they are to choose the appropriate one.
But I prefer to define them in a named range since number of formulas are around 20. Unfortunately I can see only the results instead of formula origins in dropdown list when I define as named range so makes me choose the suitable one impossible.
I wonder whether to see the formulas itself when I defined in named range. Thanks in advance.
It won't work. To see the formulas, you'd have to format them as text in the source cells, but then selecting them from the dropdown won't actually evaluate the formula.
Something like this may work.
A. Enter the list of the formulas you want to use in a range of your worksheet, one formula per cell, without the equals signs. An example list of formulas:
1
5+($B$1/$B$2)
2+($B$1/$B$2)*2
7+($B$1/$B$2)*3
B. Create the cell with Data Validation to select from the formula list
C. Use MATCH and CHOOSE to select which formula you want to use for calculations:
=CHOOSE(MATCH(Formula,FormulaList,0),1,5+($B$1/$B$2),2+($B$1/$B$2)*2,7+($B$1/$B$2)*3)
Here Formula and `FormulaList are placeholders (or named ranges) for the cell that has the chosen formula and the list of formulas, respectively.
Hope that helps
Hello I am trying to use countif to add up how many cells have January in. For example I have 40 worksheets and I need to find out how many of them contain january in the date in cell C3 on all of the sheets. and put the answer in another sheet.
OPTION 1) Formula Method
1) Write out a list of all the names of your sheets in a column.
2) On the "Formulas" ribbon, select Define Name.
3) Give it a name in the top box, ie. SHEETNAMES
Then use this formula:
=SUMPRODUCT(COUNTIF((INDIRECT("'"&SHEETNAMES&"'!C11")),"Completed"))
I would have thought the formula for your original question would have been very similar but it keeps showing up as an error. I have been using the following:
=SUMPRODUCT(--(MONTH(INDIRECT("'"&SHEETNAMES&"'!C3"))=1))
You can use a 3-D formula, but unfortunately, the only formulas that allow 3-D references are mathematical functions that don't have much in the way of logic (no IFs, ANDs, etc.). If you restructure your workbook a little bit to, say, add IF(C3="January",1,0) in Z3 on each sheet, then you can do SUM(Sheet2:Sheet40!Z3) on your summary sheet.
I have a formula in excel that looks like such: =COUNTIF(Imports!$B$2:$B$999,"1")
It works like I want it to but part of my manipulation of the spreadsheet requires me to insert new columns in the sheet that formula is referencing. When I do that it changes the formula from column B to column C which is actually not what I want. I want it to reference column B no matter what. How would I achieve this in Excel? Thank you!
Use INDIRECT to reference range from its text address:
=COUNTIF(INDIRECT("Imports!$B$2:$B$999"),"1")