Running Total + % Of (PivotTable) [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a table:
Group 0 Group 1 Group 2
Day 1 10 12 9
Day 2 7 5 14
Day 3 12 11 3
...
I want to calculate running total for Groups 1 and 2 as % of running total of Group 0:
Group 0 Group 1 Group 2
Day 1 100% 120% 90%
Day 2 100% 100% 135%
Day 3 100% 97% 90%
...
A pivot table allows to "Show Value As" either running total or % of, but I can't figure out how to have both.

I doubt possible even in Excel 2010 (which I don't have) but the values you show are achievable with the PivotTable showing running totals and (if Day1 is in E4) =F4/$F4 alongside and copied down and across to suit.

Related

how can i compare two values and rank them in excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
how can i compare two values and rank them in excel
the largest value should be 1 and smallest be last
Category amount rank
abc 300 1
abc 6 3
abc 34 2
xyz 50 2
xyz 568 1
xyz 1 3
I tried this by my own COUNTIFS($A:$A,$A2,$B:$B,">"&$B2)+COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)
its working
but I want it in more simpler way.
Try this:
=SUM((B2<=$B$2:$B$15)*1*(A2=$A$2:$A$15))
This is an array formula so commit by Ctrl+Shift+Enter
Assuming your data starts in cell A2 you can use
{=MATCH(B2,LARGE(IF($A$2:$A$7=A2,$B$2:$B$7),ROW(INDIRECT("1:"&COUNTIF($A$2:$A$7,A2)))),0)}
This is an array formula, so enter using CTRL + SHIFT + ENTER.
Change $A$2:$A$7 and $B$2:$B$7 to your data range.

Subtract hours and minutes from a time entered in Excel 2013 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I want to know the time when 12 hrs and 30 mins is subtracted from a time let us say 10:00 AM(it should display 9:30 PM). But since excel by default stores this date as 1st Jan 1990, I am getting a negative timing and excel does not display it. How do I make sure that when a time is entered in a cell,I can subtract certain hours from it and display the time in AM/PM format? PS: I tried changing it to 1904 format,but this did not help.
I think it's enough to put
=MOD(A2-B2,1)
where the first time is in A2 and the second in B2.
That will get the fraction part (the hours) and give it a positive sign which should be what you want.

Selecting a raffle winner with Excel when each player has multiple tickets [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have to find a way to extract the winner in a raffle, using Excel.
Each player has a number of 'tickets', depending on their work achievements.
For instance: John has 300 tickets, Alice has 360 tickets, Ana has 410 tickets and so on.
I have to use Excel to randomly extract the winner with respect to each player's number of tickets. Any suggestion?
I use the following layout:
Where in E2 I use:
=RANDBETWEEN(1,1070)
This will generate a uniformly distributed random number on the interval [1,1070], where the numbers are discrete.
You then define the intervals, in which the person wins with respect to the number of tickets.
I.e. Ana is represented by the interval [1,410], Alice by [411,770] and John by [771,1070].
You then look in which interval the random number lies, in order to select the winner with this in F2:
=IF(E2<=C$2,"Ana",IF(E2<=C$3,"Alice","John"))

in excel how change the value of a cell if it is over a specified amount [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I am making a cost calculator and what I want is a cell to display a converted value based upon a range of values. For example: if the value is > 100mb I want a cell to display $25.00 and if > 200mb than the cell to display $50.00.
Assuming you have your mb value in A1 cell how about something like
=FLOOR((A1 - 1) / 100, 1) * 25
It will give you (exactly as in your requirements > 100)
A1 B1
--------
99 0
100 0
101 25
200 25
201 50
=FLOOR(A1 / 100, 1) * 25
It will give you (>= 100)
A1 B1
--------
99 0
100 25
101 25
200 50
201 50

Count zero's in specific columns [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have data like the table below.
10 0 11 5 11 5 16 5
0 0 9 5 11 5 11 5
12 0 12 5 12 5 12 5
11 0 11 5 11 5 11 5
And I would like to ask you to know the logic in excel to count "0" value in every row and in column 1,3,5,7 only.
So that the answer will be 1 {1;0; 0; 0}
Thanks for your help.
A little shorter:
Updated to pick up on the empty cells issue
=SUMPRODUCT(--(MOD(COLUMN(A1:H4),2))* (A1:H4=0)*(LEN(A1:H4)>0))
;To get the exact output that you wrote, use this:
=CONCATENATE("[", COUNTIF(A:A, 0), ";", COUNTIF(C:C,0), ";", COUNTIF(E:E,0), ";", COUNTIF(G:G,0), "]" )
It uses the entire column as range. You can change that if you need.
=sum(countif(a1:a4,0),countif(c1:c4,0),countif(e1:e4,0),countif(g1:g4,0))
Obviously you may need to extend your ranges if the real data is more than 4 rows.

Resources