Multiply Every Nth Cell By Another Column Whith Merged Cells, THEN Find Column Total

Aug 6, 2009

Please see the attached sheet. I have columns B through a lot (B through O in my oversimplified example). In every 7th row in each of these columns there is either a 1 or a blank/zero. I need to multiply that 7th number by the Quantity in column A, to achieve a total (ie the sum of each result of 7th cell*quantity) for each column in the bottom row, labeled "Totals".

In the actual version of my sheet, there are far too many rows to select everything manually. I've been fiddling with combinations of COUNTIF/COUNTA and OFFSET, but I haven't come up with a way to check for the 1 in every 7th row, THEN multiply that 1 by the quantity in column A, THEN add up the results for each column. As you can see, there are 1's elsewhere in the columns that are irrelevant to this particular calculation, so something like LOOKUP would also have to look in every 7th cell and couldn't just look at the column as a whole.

If you can't provide an immediate solution, but can at least point me to a resource that would allow me to devise a way to isolate every 7th row (THAT part is the sticking point), I'll surely post the solution to my own thread with updated keywords if I need it.

View 8 Replies


ADVERTISEMENT

Find Total Hours By Searching Entire Rows Below Selected Cell Versus Cells In A Column

May 19, 2014

I'm using the following code to delete select rows one at a time. I need the last row in the range to remain therefore I prevented the user from deleting the row one up from the row that contains "Total Hours" (which is always in Column B). The code works great as long at the user clicks into a cell in column B. If the user clicks into a cell in column A, C, D, E, F, G, H, or I then the code allows the user to delete the last row.

I believe I need to search entire rows to determine if the row contains "Total Hours" .

[Code] .......

Attached File : Staffing Report 1.44.xlsm‎

View 6 Replies View Related

Count Cell Values In A Column And Merged Cells

Apr 10, 2012

I have 10 columns and 18 rows. Every 2nd row might contain a number. I need to sum those numbers, however, sometimes group of cells in a row can be merged and i value of a cell is then 0.

example:

A1 to D1 merged; value 6
A3 to B3 merged; value 3
B5 to E5 merged; value 2

=sum(A1,A3, A5) would return 9 - correct
=sum(B1,B3, B5) would return 2 - should be 11?
=sum(C1, C3, C5) would return 0 - should be 8?
=sum(D1,D3, D5) would return 0 - should be 8?
=sum(E1, E3, E5) would return 0 - should be 2?

View 9 Replies View Related

Multiply 2 Values Based Upon Corresponding Column Cells

Oct 15, 2009

I'm absolutely new to Excel and I've been trying to workout a formula to to test two conditions if true and derive the data from a 3rd column. In my attached excel file there's a Grade (A) , Status (B) and Mid Point (C) Tables. I'd like it to be formulated in a sense that forexample:

IF Grade= 1 AND Status= Q4 RETURN =3750*0.25
IF Grade= 1 AND Status= Q3 RETURN =3750*0.5
IF Grade= 1 AND Status= Q3 RETURN =3750*0.75
IF Grade= 1 AND Status= whatever (I mean whatever I input in this cell then it would retrun 3750 ofcourse satisfying the condition grade= 1) RETURN =3750

IF Grade= 2 AND Status= Q4 RETURN =5500*0.25
IF Grade= 2 AND Status= Q3 RETURN =5500*0.5
IF Grade= 2 AND Status= Q2 RETURN =5500*0.75
IF Grade= 2 AND Status= whatever (I mean whatever I input in this cell then it would retrun 5500 ofcourse satisfying the condition grade= 2) RETURN =5500
................

View 7 Replies View Related

Search Column For Value With Merged Cells

Sep 3, 2009

I'm trying to search column 1 for the word "STATE".

Dim rFound As Range
On Error Resume Next
With Sheet5
Set rFound = .Columns(1).Find(What:="STATE", After:=.Cells(1, 1), LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False)
debug.print rFound

On Error GoTo 0
If Not rFound Is Nothing Then Application.Goto rFound, True

End With

View 9 Replies View Related

Selecting 1 Row, While 2 Cells Of The First Column Are Merged

Jul 14, 2006

how can i (in VBA) select 1 row (eacht time, it's an ? iteration? (repeating)), while the first 2 cells are merged, like:

a b c d .....
1
2 merged
3 merged

and i need to select row 3 only

and if someone could explain me how i can use the " find" function (on another sheet)

View 5 Replies View Related

Multiply Two Column Vectors Based On Reference Cells

Feb 9, 2013

How do you multiply two column vectors D2:D6 and G2:G6 based on reference cells A3 and B3 that are equal to D1 and G1?

A
B
C
D
E
F
G

1
2
3
4
5

[Code] ......

View 1 Replies View Related

Select Entire Column Except The Merged Cells

May 19, 2014

I've been working on a macro which delivers a daily report. the report is made up of 4 sections (received orders, scheduled orders, pending orders and unusual orders) each section is topped by a title which is a merge of all columns (A through I) the problem I am having is that the first column displays case numbers (to be displayed in text or number formats) and the 7th and 8th columns are dates When I try to have the VBA select the first column to format as a number, it will select all columns due to the merged cells is there a way to format only non-merged cells of a columns

This is the section I currently use for formatting but it doesn't actually work, (everything ends up in a date format)

[Code] .......

View 2 Replies View Related

Multiply Cell In Column A If Cell In Column B Is Equal To 5?

Mar 25, 2014

How can I multiply let's say A1 to 10 if B1 = 5

or multiply next cell like A2 to 15 if B2 = 10

View 3 Replies View Related

Determine Last Row And Column With Data In Sheets With Merged Cells

Jan 28, 2009

I am using the following functions to determine the highest row and column that contain data:

View 4 Replies View Related

Adding Column Widths Of Merged Area To Match Single Column Width

Sep 19, 2012

I needed to match the width a merged area of seven columns to a single column width (for row autofitting). Adding the column unit values and setting the single column to that value produced a significantly narrower width.

The documentation mentions that the column width unit is scaled to the font type and size and the absolute width is given in points.

This is set by the normal style setting in Excel Options or by VBA application.standardfontsize = 8 (in this case).

For instance, ten columns of Arial font 8 at 8.5 units you would think to be equivalent to a single column of 85 units.
In points, the difference is 420 vs. 386.25, or 33.75 points.

Well, the standard character zero has a width at this setting of 4.5 points and 1 unit is 8.25 points, leaving 3.75 points for margins.

Then (10-1) margins allowances time 3.75 points resolves the difference.

Determining the margin allowances is straightforward, and reveals that the gradation with size is stepped by MS design.
For instance, sizes up to 11 use 3.75 points for margins and increasing points for characters (except between 9 & 10).
Sizes 12 through 18 use 5.25 points, 20 & 22 use 6.75, 24 & 26 use 8.25, etc.

I have created a table for this purpose, however I rarely use a "normal" other than 8, so I can probably use that set in programming.

View 1 Replies View Related

Find The Column Name Purple & Delete The Whole Column If There Are No Blank Cells

Mar 18, 2009

I'd like a macro that does 3 things..

1. Find the last row (cell) of data in the "Customer Number" column. This search should be by the name "Customer Number" rather than by column letter because the column that "Customer Number" will be in can change.

2. Find the column named "Purple" (also by name for same reason)

3. If the "Purple" column has no blank cells in those same number of rows as the "Customer Number" column, delete the whole "Purple" column.

View 11 Replies View Related

Multiple SUMIFS (find And Add Up All The Total Requests For Only The Summer Period (Column Q))

Apr 28, 2009

I have a list of about 2,500 entries containing information of all my works leave requests for 2009. This list contains more than one entry per employee, as it shows all their individual requests for different weeks. The list is compiled pulling through data from other worksheets. It looks like this...

Sheet Name: MASTER

Column A = Line Managers Surname
Column B = Employees Surname
Column C = Employees First Name
Column D = Employees ID Number
Column E = Week ending
Column F to L = Days of the week
Column M to O = Request Type
Column P = Number of days requested for the week

I then have another sheet (Called REQUESTS) with all the employee names (1 entry for each employee), ID numbers and total requests for the year. This looks like this...

Column A = Line Managers Surname
Column B = Employees Surname
Column C = Employees First Name
Column D = Employees ID Number
Column P = Number of days requested for the year
Column Q = Number of days requested for the summer

I know how to locate and add up all the requests for each individual for the whole year (Column P) from the MASTER sheet to the REQUESTS sheet by using the flowing formula for each employee.

=SUMIF(MASTER!$D:$D,D2,MASTER!$P:$P)

But I don't know how to ask Excel to find and add up all the total requests for only the summer period (Column Q). What I want Excel to do is this................

View 2 Replies View Related

Excel 2010 :: Find Total Of Times Word Appears Across All Sheets In Column C?

Dec 19, 2013

I have a single work book with 8 sheets (I am using Excel 2010 BTW) and I am trying to find a total of times a word appears across all the sheets in column "C"

I found this formula on another thread. =SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!C1:C1000"),"="&H3)) with an example. I made the changes that I needed for my purposes

This worked but only after I renamed the sheets to Sheet1, Sheet2, etc.

Is there a way get the same results from the above formula if all the sheets are named after our reps? Example: sheet1 is named Dan, Sheet2 is Nick, etc?

View 2 Replies View Related

Formula To Multiply Total Number Per Category With The % Of Total?

Dec 13, 2013

number for item detail level from category standpoint. For example, in the category sheet has total number per category and per month and in the item detail sheet has a list of item number with category. I want a formula to recognize which item belongs to which category then use the total number of category by month to multiply with % of total in column D from Item Detail Spreadsheet.

View 2 Replies View Related

Multiply A Column And Result Appear In Next Column

Aug 31, 2010

How do you multiply a column and have the results reappear in the nextcolumn? E3:E3631*1.3 = F3:F3631, is the code I tried.

View 3 Replies View Related

Find Duplicate Cells In Column And Change Value Of Another Cell

May 20, 2013

I have 3 columns containing id, item, colour. I want to check for duplicate id's in the id column and where duplicates are found merge the colours into one cell, as follows:

iditemcolour
1245bookred
1245bookorange
1245bookblue
1456chairred
1367chairgreen
1876tablewhite
1876tablebrown

would become

iditemcolour
1245bookred,orange,blue
1456chairred
1367chairgreen
1876tablewhite,brown

View 6 Replies View Related

How To Find Value From One Column In Another Column And Then Copy Several Other Cells

Aug 21, 2014

I have 2 worksheets, "Data Dump" and "Target List"

I'm trying to cycle through the "Target List" in column "A", find the same value in column "B" in the "Data Dump" sheet. When I find it, I want to copy several other cells from the found row into cells on the "Target List" (though probably to a different column). Here is the code I'm trying to use. How to correct it to get the result I'm looking for.

[Code] ....

View 4 Replies View Related

How To Find First Blank Cell In Column Then Copy All Preceding Cells

Aug 14, 2013

I am working with arrays that extend far beyond their actual content, and so i am looking for a way, through macros, to find the first blank cell in a column and then copy all preceding cells in that column.

View 8 Replies View Related

Reference Column Cells And Add The Total From Row

Sep 29, 2009

i'm tracking hospital census with days of month in columns and patients 1 - XX in rows. this is basically what i'm working with.

A...........B........C...D...E...F...G...H...I...J...AG...AH
Patient...Payor...1...2...3...4...5...6...7...8...31...Total
1...........MCR.....x...x...x...x...x...x...d...............6
2...........COM.........x...d..................................1
3...........SP............s...s...s....s...d....................4
4...........MCR.............................x...d..............1
5...........MCR.............................x...x..d...........2
Total.................1...3...2..2...2...3....1..0.........14

The "total" cell formula is =COUNTIF(G7:AK7,"X")+COUNTIF(G7:AK7,"s")

S and X just identify where that patient is med/surg vs. skilled.

I'm looking for a solution that will reference column cells B2-BX and add the total from that row (AH) if the payor of that row is MCR, then another cell that would do the same for SP, COM and so on. so in this scenario it would be something like

COM...7.1% (SUM col AH where col B = "COM" ie. 1/14)
SP......28.6% (SUM col AH where col B = "SP" ie.4/14)
MCR...64.3% (SUM col AH where col B = "MCR" ie.1/14)

View 8 Replies View Related

Formula To Find A Value In Column A Corresponding To First Blank Cell In Column B?

Aug 7, 2013

A
B

1
Name
Action

2
Joe
Created

3
Bob
Approved

4
Cindy

5
Jane

6
Dave

7

View 1 Replies View Related

Determine Total Column Width Of Visible Cells

Dec 23, 2008

I am trying to resize a picture on a worksheet to fit a dynamic measurement(the size of the page is different depending on the contents in cells).

I am doing this all in VBA.

so what I have come up with is that I need to

1) determine the total column width of only the non-hidden(visible) cells.
2) resize my picture to those measurements, so I can get an exact fit, and it doesn't create a new page break, by going over.

I have found some code on forums, and am thinking of something like this as a solution(although I don't know how to complete it):

For summing column widths:

View 7 Replies View Related

Formula To Total Values In Column Matching Text In Adjacent Column

Dec 20, 2013

Formula(s) to do as explained in the attached example.

Example_formula.xlsx

View 9 Replies View Related

Find Value In Column & Return Cell On Same Row- Different Column

May 24, 2008

I have an excel sheet I am working on and in columns F1:F2000 I have an IF statment, I need to be able to add more "IF"s to it but I will exceed the 1024 char limit. Is there a way I can put this formula into VB as a function called DocumentType() and then in excel F1:F2000 =DocumentType()?

Is it as simple as:

Function DocumentType()

If(...........)

End Function

View 4 Replies View Related

VBA - Find The Word Numeric In Merged Cells?

Mar 24, 2014

I need to find the word 'numeric' in the merged cells of first row (always first row) and to select its corresponding 2nd row data using macro. In the attached file, M2 to P2 data to be selected.

View 3 Replies View Related

Multiply If Column Contains Certain Text?

Aug 8, 2014

I have column A that declares the account as asset, liability, expense, etc. Some of the accounts need to be reversed. I'm having a hard time figuring out a formula or code I can use. Column C contains the values. I prefer VBA as I want to add it to the current macro I already have.

So if Column A has a liability, offset by (0,2), and multiply that value by -1. If Column A has an asset, leave the value as is.

I wanted to use an if-then statement but I'm not sure how to highlight entire columns. The number of liabilities, and assets, etc.

View 7 Replies View Related

Scroll Down Column And Insert Total In Blank Cell

May 22, 2007

May seem straightforward, but not to me. I need some code to scroll down column A and insert the sum total of A2:A16 in B17, and repeat this everytime a blank cell appears in colum B, continuing down to the end of the worksheet.

View 5 Replies View Related

Automatically Add Merged Row Across Each Column?

Oct 31, 2011

I have a scorecard that automatically adds a merged row across each column when it is exported to excel. Is there an easy way to copy the entire column over to the next sheet without manually changing the formula in increments of 2?

View 1 Replies View Related

Multiply Column - Final Formula For This Spreadsheet?

Jul 30, 2014

I am having trouble with the final formula for this spreadsheet.

I want to be able to select "Holiday/Sunday" from the drop down men in column H, and have it multiply the total in column F by 2. There is already a formula in column F that sums column E-D.

View 4 Replies View Related

Multiply Column Of Numbers By Fixed Number

Mar 1, 2008

I did a search myself, then went through the 5 pages the "Post" function brought up. I'm sure it's been asked before, I must just not be using the right words

I need to tell every cell in one column to multiply itself by a firm number and a percentage. Ex: Column F will be the result of $77.80 times 75 percent all the way down the column. Column G will be $27.21 times 100 percent all the way down.

I could enter the formula into every cell, but I wondered if there's a way to just tell the whole column, only once, what it needs to do. PS-I work for an insurance company. The employees of a company want a spreadsheet showing exactly who pays exactly what. Ex: Their paystub shows $142.90 coming out of their paycheck. Their employer pays 100% of medical, 75% of dental. The columns would show Total, Employer Medical, Employer Dental, Employee Medical, Employee Dental.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved