# Dividing And Returning Different Value Than Zero

Jun 24, 2014
How to do the following?

When dividing two cells and the answer is zero then I want to return a different value. I've tried the following with no luck:

=IF(ISERR($D20),"*",$G20/$G$22*100)

or

=IF($H19,$G19/$G$22*100,"-")

=if a1/b1 = 0 then "*", else return actual value

(N)(%)

64 13

82 16

82 16

2 0 --> change this to * or -

264 52

13 3

507(total)

View 9 Replies
ADVERTISEMENT
Jan 29, 2009

Need to divide a cell containing a time value (hrs:mins:secs). My timesheets calculates the number of hours on a job and I want to divide this total by the number of components made.

View 7 Replies
View Related
Apr 6, 2009

I have a total at the bottom of my spreadsheet and I want to distribute that total equaly to the missing columns for each month and each product highlighted in green in the spreadsheet. What formula do I need to use to be able to do that?

At the end I want the numbers in each month to total the total at the bottom.

View 10 Replies
View Related
Sep 6, 2006

I've found how to present time exceeding a minute in seconds ([m]:ss.00), but I need to formulate items per second. Doing simply CellItem / CellTime won't work. I've tried Minute(CellTime)*60+Second(CellTime), but this leaves out the hundreds of a second.

View 3 Replies
View Related
Sep 15, 2014

Dividing column in equal parts divide a column in groups with the same rows and the same total sum? For example, I have the column A as following:

8,942

2,807

2,568

5,818

5,818

596

8,942

4,390

1,607

890

8,772

1,103

The total number of rows is 12 and total amount is 52,254

I want to divide the column in three equal parts with the same total. So each group must contain 4 rows with the total sum 17,418

View 9 Replies
View Related
May 23, 2006

Have a list of information and would like to divide that list by a number that the user enters. Then from the total count of nonblank rows divide by the numeber entered by the user didive the list into equal parts and print out each group with a page break per groups.

Have attached an example.

View 6 Replies
View Related
Jul 26, 2014

V = 100 x [E /(IY + YP)] x Sqr. [((R + G)/2 / (IY + YP + F)]

V = 100 x [6.10 /(5.60)] x Sqr. [((10.2+2)/2 / (5.60 + 2.1]

V = 108.93 x Sqr (.79)

V = $96.89 / share as of 7/18/2014

E = Earnings in $ / share 6.1 (b9)

IY = Interest rate in % 5.6 (b10)

R = Profitability Factor in % (internal growth rate)10.2 (b11)

G = Earnings Growth in % / yr. 2 (b12)

F = Inflation Rate in % / yr. 2.1 (b13)

Here's what I have, result should be $96.89, I need to tell excel to take square root of everything to the right not just (B11+ B12)

=100*(+B9/B10)*SQRT(B11+B12)/2/(B10+B13)

View 3 Replies
View Related
Jan 24, 2014

I'm not sure if it's just been a long week but I can't get get the following to work in a sum formula.

In the example below I want to deduct B1 from A1 and then Divide by C1. The result should be 0.57 but I can't get to it within 1 formula.

9:49:12 - 6:18:46 = 3:30:26 / 2 = 0.57!!! Not sure if it's because I'm using unfriendly hh:mm:ss format but I need to.

A1 - 9:49:12

B1 - 6:18:46

C1 - 2

View 5 Replies
View Related
Feb 10, 2014

Cell A1 contains 2, B1=220077:23

In C1 I created a function = (2*1000)/B1, I get error. I want the answer 2000/220077h23m = 0.009087713

View 5 Replies
View Related
Nov 5, 2008

how could divide one single cell in diagonal direction ?? without using line from drawing tool.

View 12 Replies
View Related
Jan 25, 2009

A given string of some letters (from three to five, six) is followed by a single number (1-4). Then it ends, or is followed by another such combination, up to a maximum of, let's say, four.

Example:

xxxx1

yyy3yyyy1

xyzxx1yxz4xzx1

xxx2xxx2xxx2xxx2

What I would like to do is to divide a given chain of characters into the smallest chains which contain only letters and one number. To the examples given above, I'd like to receive the following sets:

xxxx1

yyy3 and yyyy1

xyzxx1 and yxz4 and xzx1

... and so on

Is it somehow possible to do it with simple functions? Or is VB necessary (which sadly I don't know)?

View 6 Replies
View Related
Apr 9, 2009

I am trying to divide a range that has blanks in. The range is the result of a webquery and taking the blanks out would be time consuming at best.

Conveniently (potentially) the blank row is every other row in the range.

View 4 Replies
View Related
Mar 13, 2013

I am attempting to calculate % utilization. I have number of minutes used formatted in [mm]:ss and number of minutes available formatted as a number. When I divide available by minutes used I get a percentage that is off.

So I have Available 33600 minutes available 4901:20 minutes used.

View 2 Replies
View Related
May 23, 2007

Suppose I have the following plan number (24) and I wan't to spread it across 12 columns, as evenly as possible but with respect to rounding.

Easy enough.. Each column receives 2...

Or say the figure was 24.6 and i wanted to round to 2 places...

Easy enough... Each column receives 2.05...

Or say the figure was 24.7 and i wanted to round to 2 places...

Easy enough... Each column receives 2.05... But one would be 2.06!

How about the number is 1 and say, the rounding is 0.1?

Ten of the columns would be .1 while two others (arbitrarily) would be 0.

View 9 Replies
View Related
Apr 15, 2009

In trying to solve my dilema I searched some older threads and found some code written by Peter SSs. I altered it to fit my situation ( or so I thought) because all I get is a compile error. I am not sure why. The data is lengnty but the sorting item is the provider name. The information for each provider should then post to the sheet with his name.

Here is the

Sub test()

Dim lr As Long

Dim ws As Worksheet

Application.EnableEvents = False

Application.ScreenUpdating = False

lr = Sheets("Audit Results").Range("F" & Rows.Count).End(xlUp).Row

For Each ws In ThisWorkbook.Worksheets

View 11 Replies
View Related
Dec 11, 2009

Does anybody know the code or the formula to divide a number generated by a formula. Id like to divide this number by 2 different set numbers. Meaning if my number comes out ot 19, id like to divide this by 5.5 and if it's not a whole number which this isn't (it's 3.45), i'd like to round this number to a whole number and add 2.5. My end answer would be 3 5.5 and 1 2.5.

Windows XP

Excel 2003

View 9 Replies
View Related
May 23, 2006

Have a list of information and would like to divide that list by a number that the user enters. Then from the total count of nonblank rows divide by the numeber entered by the user didive the list into equal parts and print out each group with a page break per groups. Have attached an example.

View 4 Replies
View Related
Jul 10, 2006

I have a large worksheet that I need to make into a quarter of what it is now. Each of the numbers is just inputted, so I was thinking there is a way to divide it all by four.

View 6 Replies
View Related
Jul 19, 2007

I have this formula

= COUNTIF(AT6:AY6,"F")+COUNTIF(AT6:AY6,"P")+COUNTIF(AT6:AY6,"M")+COUNTIF(AT6:AY6,"D")

that returns the number 2 (which is correct). However, if I precede it with

AZ6/COUNTIF(AT6:AY6,"F")+COUNTIF(AT6:AY6,"P")+COUNTIF(AT6:AY6,"M")+COUNTIF(AT6:AY6,"D")

it returns a DIV/0 error, even though AZ6 has a value of 24.

Surely 24/2 would return a value of 12? NB AZ6 cell value is derived from the result of a formula.

View 3 Replies
View Related
Sep 2, 2007

I have this formula:

=IF( COUNTIF($H$42:$H$76,"A~*")/COUNT($J$42:$J$76)="","",COUNTIF($H$42:$H$76,"A~*")/COUNT($J$42:$J$76))

which seems to work fine if there's data in the range to compute. If there isn't it throws a DIV/0 error at me. How can I modify the above to

Be blank if there's no data to display in the range, therefore avoiding a div/0 error.

View 3 Replies
View Related
Sep 3, 2012

I am working an Excell sheet. It have many cells with formula like sum of a range of cells etc.

I wanted to divide a range of cells with the given cell (which is inturn having a formula for sum of a range of cells.) want i wanted is to divide a range of cell values with a given cell whose value (number) is obtained through a formula.

when i do

=100*(v65)/v20 for T65 cell and copy the formula for T66-T106 cell range

it is calculating for T66=100*(v66)/v21 and T67=100*(v67)/v22 ........T106=100*(v106)/v61

what I want is all the cells T66=100*(v66)/v20 ... T106=100*(v106)/v20.

View 1 Replies
View Related
Oct 8, 2008

I'm trying to craft a gradesheet for my son's teacher and I am runnning into a problem obtaining a students average. In one row I've listed the possible questions for all the tests whether the test has been taken or not. In the row below I've listed "questions answered correctly" for only the tests they've taken. I need a way to calculate the overall avergae of the student while ingoring columns with null values in the "questions answered correctly" row.

I know there is a way to ignore zeroes by excluding them with an IF statement but I didn't want to do that in case one of the students actually did get a zero. As the attached example shows the simple sum function renders a 25% average while the average should actually be 50%.

View 2 Replies
View Related
Mar 21, 2013

I'm trying to work out the productivity of something per hour but I'm having a bit of trouble with dividing time in Excel.

Basically I've got

A1 = # of Sales (e.g. 5)

A2 = Total time worked (e.g 07:36:00)

I want C1 to show me how many Sales are made per hour.

View 1 Replies
View Related
May 31, 2012

I have a worksheet in excel that has financial data for several departments and schools. The data is across 2 columns and 948 rows. I need to break the data down into multiple workbooks so I can use and existing email macro to send them to managers. There is a unique character that separates the data and I was able to use a previously written macro to enter page breaks which is below, but I'm having trouble using the same unique character (or page break) to put the data into separate workbooks.

Dim PBRange As Range, PB As Range

With ActiveSheet

Set PBRange = .Range("A1:A1000")

For Each PB In PBRange

If PB.Value = "***********" Then

.HPageBreaks.Add before:=PB

End If

Next

End With

View 3 Replies
View Related
Nov 2, 2013

I am dividing the number. I have for example 20 hours(A1) which have to be divided into 8h + the rest.

So, 8(B2)+8(B3)+4(B4) hours. I have tried few things, but I can only divide it by 8 and it doesn't go anywhere from that.

View 5 Replies
View Related
Mar 5, 2008

I have Excel 97. I'm working on a spreadsheet and I just can't figure out how to create a conditional formula that will look through Column A & B, then add up the related time value (hh:mm) in Column C.

A B C D

Gender Age Start time End Time

Male Adult 23:10 01:45

Female Adult 21:30 03:30

Male Adult 00:15 01:05

Female Juvenile 23:50 00:10

I tried the SUM(IF((A:A="Male")*(B:B="Adult),C:C)) or something like that.

The times seem to have a problem adding up or averaging if the time value exceeds 24:00 hrs. Or if it's computing numbers that some are before and after 24:00 hrs.

Is there some way to create a formula that will result in something like: Of 5 Adult males, the average start time was 23:50 hrs and the average end time was 01:30?

View 11 Replies
View Related
Mar 10, 2014

I need to distribute a list of data into 10 even groups of data. Here is the scenario.

I have 10 salespeople on my team with a list of accounts that need to be evenly distributed based on two criteria

- Each sales person needs to have the same number of zipcodes , with the closest TOTAL # of accounts and TOTAL $ value as possible

View 6 Replies
View Related
Aug 15, 2014

I have the onerous task of dividing up a series of steps in one cell into multiple cells. I tried the text to columns utility, but it only delimits once, not multiple times. Below is a data example:

"1) Load App

2) Login using Administrator Access details .

3) Click on icon 'Admin' on the right hand side of page.

4) click on subcategory 'Administration'"

"1) Load App

2) Login using Administrator Access details .

3) Click on icon 'Admin' on the right hand side of page.

4) Click on subcategory 'Administration' .

5) Click on any Organization name from 'Organization' section in the list.

Or click on 'Add Organization' icon in section 'Organization' .

6) Validate field 'Parent Organization' in 'New Organization' or 'Edit Organization' form"

"1) Load Documoto.

2) Login using Administrator Access details .

3) Click on icon 'Admin' on the right hand side of page.

4) Click on subcategory 'Administration' .

5) Click on any Organization name from 'Organization' section in the list.

Or click on 'Add Organization' icon in section 'Organization' .

6) Validate field 'Tenant ERP Accessible' in 'New Organization' or 'Edit Organization' form"

1) Load App

2) Login using Administrator Access details .

3) Click on icon 'Admin' on the right hand side of page.

4) Click on subcategory 'Administration' .

5) Click on any Organization name from 'Organization' section in the list.

Or click on 'Add Organization' icon in section 'Organization' .

6) Validate field 'DMZ license key expiration period ' by click on checkbox or by 'Uncheck' checkbox"

I need to put each step into it's own cell.

View 1 Replies
View Related
Feb 21, 2006

I am developing a report that tracks the efficiency of industrial sorters on

an automated assembly line. The line runs around the clock in three shifts

(1: 7:30am to 3:29pm, 2: 3:30pm to 11:29pm, and 3: 11:30pm to 7:29am), and

collects certain performance indicators, such as units processed. I am

trying to calculate the units processed during each shift on each day. For

example, if a run ran from 2:30 pm to 4:30 pm, and processed 100 units, I

would want 50 units credited to shift 2 and 50 units to shift 3 (we are

assuming a steady rate of processing).

My data arrives from the machine with the following columns (each run is a

separate row):

B|D|E|G|H

Run #| Start Date| Start Time| Units Processed | End date | End Time

I have successfully used the start time to determine the starting shift with

IF statements:

=IF(--E3<0.3125,3,(IF(--E3<0.6458,1,(IF(--E3<0.9792,2,3))))) and a similar

formula to calculate the end shift. This works fine if the run only spans

two shifts within the same day.

My problem is that some of the runs, run across more than one shift and even

across days. For example, a run that ran from 10:30 pm on one day to 4:30 pm

on the next, would overlap 5 shifts and two days. I need to be able to

figure out the proportion of time spent on each shift, and use that to get

the proportion of units processed during each shift on each day.

I am currently thinking of a convoluted series of nested IF statements (and

generating lots of columns to the right of my data for each potential shift

within a run), but this seems inelegant and cumbersome. Is there a more

logical way to approach this? Even more specifically, is there a function

that can pair my start/end dates and times with a set of shift start/end

times and calculate the elapsed time for each shift within a run? Something

with MATCH or VLOOKUP maybe?

View 14 Replies
View Related
Dec 14, 2006

I'm only starting to get into the Macro side of excel, and I've created a couple of macros to automatically format cell contents and the like.

However I'm having trouble trying to divide some cell contents by 100.

I have 2 files I'm working with, one contains information regarding cd's and percentages, however the percentages in this file cannot be formatted to percentages (so the powers that be say) for whatever reason.

I copy all this information into another file which does have the percentages formatted as percentages, the result is that the values get multiplied by 100.

So values that read:

100

50

50.25

for example, appear on the new sheet as:

10000%

50000%

5025%

Is it possible to write a macro that will divide these percentages by 100 so the read correctly as:

100%

50%

50.25%

the macro will have to work on selected ranges.

View 9 Replies
View Related