Trying to count the negative values and ranking them from highest count to lowest
I was going to use the worksheet function like this
Set CountRng = range("B1:F1")
CountApple = Application.WorksheetFunction.CountIf(CountRng, "<0")
But not sure how I can rank them. Maybe I need to use array...
If cell A1=2 then I want to subtract B2-B1 and if the number is a negative value, Display a blank cell. I'm a novice and can't figure how to do this.
Thank you.
Hi ,
I have a column of data that includes positive numbers, negative numbers and zeroes. i tried different formulas,
like =SUMIF(G5:G9,">=0")/COUNTIF(G5:G9,">=0")
=AVERAGEIF(G5:G16,"<>0")
but I cant seem to get an average excluding both the zeroes and negative numbers.
I tried...
I have a database that we input repair times. I used the formula =SUM(FINISHTIME-STARTTIME)*1440. It registers the time difference in minutes. It has worked well until now we had a 9.5 hr downtime that ran from one day to the next. Instead of coming up with the 570 minute repair time, it comes...
<tbody>
input
input
formula (arrived on site - driving time)
DRIVING TIME
ARRIVED ON SITE
STARTED DRIVING
1:00
15:00
14:00
3:00
19:30
16:30
18:00
3:00
gives negative number ########
- should be 9:00
</tbody>
Who can help me solving above?
I calculate the 'started driving time" by...
Good morning, I have a doubt that I do not know how to solve, I need that when the result of a cell is negative add up and when it is positive I subtract it. I attach an example. Thank you. https://we.tl/t-CpPDWGBKLDhttps://we.tl/t-CpPDWGBKLD
Hello, i have a spreadsheet that i use to compare projected costs to actual costs. Column C are projected costs, column B are my actuals, and i want column D to have the difference multiplied by a certain percentage based off of a positive or negative return. I would like the difference in these...
Hi
For the last hour or so I have been trying to find an answer through youtube but just can't it. Really appreciate if some one can help me with this, I just created a table from randon figures which represent the actual table at work, so the modules are products and the dis module colum is...
I sometimes create sheets to track the standings of sports teams. Some of these sheets contains rankings. Over time, the rankings change. In the past, I have calculated the change in rank by subtracting the old ranking from the new one (=NewRank-OldRank). This works, but can be a little...
Hi,
I currently have a listing of positive and negative numbers (ranging from numbers in the tens to hundreds to thousands to millions) and am looking to have all numbers aligned right excluding the ending ")" for all negative numbers. In other words, would like the alignment of all numbers and...
Hi All,
I have created a set of bubble charts. The 'Z' value has positive and some negative values. When positive, the bubbles look fine. But when negative, the bubble disappears and no negative values are shown. How do I fix this? Thank you in advance.
This seems like a simple problem, but I'm stuck. Right now I'm on the verge of a giant, if(and(or statement to look at every possible outcome, but I think there has to be an easier way. I'm assuming this is an array formula of some type, but I am not skilled enough to figure it out.
I have a...
Hi, I am trying to write a VBA to delete unnecessary rows in my spreadsheet instead of doing it manually. Row range can be up to 1000+; column range is from A to R.
Negative values cells will be highlighted in red and they are spread out randomly from column (E:N). There could be 3 negative...
Hello, I have a table with 40 rows and depending on input the values change from positive to negative. So with an inflation rate of 2.5% then row 23 will be the first row in negative numbers, if I change inflation rate to 1% then row 28 will be the first row in negative.
How do I conditionally...
I am trying to add negative time, hours and minutes (-1:32) to positive time (0:34). These are totals for hours worked above 40 hours. I have changed to the 1904 date system but my formulas aren't working. I'm not very familiar with Excel. I'm trying the formula =SUM(A1+A2) with A1 and A2 being...
I have a payroll spreadsheet that features a cell for deductions. I want to make sure that regardless of whether we enter a positive or a negative number in that cell, the number always reverts to negative. I found a code on extendoffice.com that works, but I have to add it to every sheet. I...
Hi
I have a worksheet that I convert negatives to positives by selecting cell and then putting in formula -1* and dragging all the way down the worksheet.
Im then trying to cut and paste the converted values into another row in the worksheet. If I copy and paste they change the red negative...
I am trying to concatenate a complex string of text and percentages and variances and struggling to get it to work. Can any geniuses out there assist me?
A1 = "Revenue"
A2 = % which could be +/- which is referencing Cell B2, ie -5.3%. Negative figure not required to be pulled through
A3 =...
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.