# Do 3 Seperate Calculations In A Single Cell And Desplay Those Results

Nov 2, 2009
Is it posible to do 3 seperate calculations in a single cell and desplay those results? For example in a single cell: A1+A2 | A3+A4 | A5+A6|

Where:

A1 = 1

A2 = 2

A3 = 3

A4 = 4

A5 = 5

A6 = 6

Results Display: 3,7,11.

View 3 Replies
ADVERTISEMENT
Feb 25, 2012

I am using excel as a scheduling program. The sheet has days of the month across the top, and staff names down the column. We have 5 shifts D,A,B,C,N. I am using the following formula to display if shifts have been scheduled for the column

if(countifB10:N23,"N")=1,"X","N") i.e for the night shift. I then use conditional formatting to change the cell to green if the night shift has been scheduled, or red if it has not.

I would like to have the results of all 5 formulas display in a single cell, to save Real Estate, then have the cell go green when all shifts have been scheduled for the day (column).

Is this even possible?

View 3 Replies
View Related
Aug 15, 2007

I have attached a copy of what I am trying to do. I've been researching vlookup for a while and everything I try doesn't seem to work. I'm also fairly new to Excel, so most of this is my first time trying these formulas.

In the attached test.xls file, I have two sheets created. The first is "Responsibility," and the second is "List." The data in "List" is what I am trying to pull from. As you can see, the people's names are listed more than once as the list goes down. On the "Responsibility" page I have each person's name one time. In the "Extinguisher" column, I'm wanting it to list every number that is found next to the person's name on the "List" sheet. For example:

Column B2 on the "Responsibility" sheet should read as follows:

1,2,3,17,24

Here is the formula I have in these cells:

=VLOOKUP($A2,List!$A$3:$C$38,3,TRUE)

View 4 Replies
View Related
Sep 29, 2007

I have a macro which scans column "AV" in Sheet1 and if a particular value is found it will copy certain cells from that row and paste them into Sheet2 on Row 10 starting with column "E".

With the current code I only paste a single instance, if the value is found more than once I only have the last one pasted. How can I best set this up so it will paste ALL found value results within Row 10?

The four copied results do not have to be in separate cells, it is actually best if the cells are combined. On Sheet2, cells E10-H10 can also be setup to have the data pasted across all four cells and that way Row Height AutoFit would take care of expanding the row's height to accommodate the possibly of having four or five sets of results being combined together and pasted into E10.

Rather than the typical result appearing as:

[TABLE]______E___F___G___H

10__1223 122 2222 2222

11__343 565 4554 5990

12__9755 334 6787 6788[/TABLE]

It is better for me if the data appears like this:

[TABLE]_____E____F____G____H

____1223 122 2222 2222, 343

10__565 4554 5990, 9755 334

____6787 6788

[/TABLE]

Is this even possible using a macro? It is currently being done using a Word document but I am wanting to automate the process and try to handle all the data sorting within Excel, if possible.

Sub Number()

Dim colSearch As Range

Dim celVal As Range

Dim celRow As Range

With Sheets("Sheet1")

View 9 Replies
View Related
Mar 13, 2008

I have a cell witch contains CSV I need too look up all the values off a master list an out put the vlookup results in 1 cell

Example:

( SHEET 1/Cell A1)

10,11,12

(SHEET 2/ look up list)

.A .B

110101

211102

312103

413104

514105

(SHEET 1)

I need the output to show the following in Cell B1

101,102,103

View 9 Replies
View Related
Dec 2, 2013

I have a spreadsheet in which I do calculations, I need to do them many times and want to record on another spreadsheet the results of two cells. I would like to show the results as a string of values.

View 1 Replies
View Related
Feb 2, 2010

I come from a (procedural) programming background, where we perform operations step by step. I tend to use intermediate calculation columns, with only 1 or 2 calculations per formula, or, failing that, use a UDF. I find this easier to debug and maintain.

The solutions I see tend to give the result in one formula. This reminds me of the functional progamming languages I used years ago. I'd like your opinions on what is best-practice, or common practice, in relation to constructing formulas, so that I can improve my development.

View 3 Replies
View Related
Feb 9, 2010

I'm trying to condense a table of calculations down to a single array formula, but am getting stuck on one piece of it.

The table data is very simple, and can be in just two columns:

1, value

2, value

3, value

4, value

5, value

Where 1 thru 5 are time periods, and values are various numbers.

I want to perform the GammaDist function on each value. It requires a time period input, and in this case it is the 1 thru 5 in the table. So at the end of period 5, the formula for the first value would be

=Gammadist(5,x,y,TRUE) (x,y values not important here)

and the formula for the second value would be:

=Gammadist(4,x,y,TRUE)

The only thing that changes is the period number.

So, my goal is to write an array formula that will sum the GammaDist for each of the 5 rows, for all timeperiods (which is 5 in this case)

I can get this far:

={SUM(B1:B5*GAMMADIST(ROWS(1:5)-1,C1,C2,TRUE))}

But this passes 1 thru 5 to all rows, I only want 1 thru 5 passed to row 1, 1 to 4 passed to row 2, etc.

View 9 Replies
View Related
Dec 25, 2007

if a web page can be displayed on an excel sheet, like internet explorer, i mean when i open sheet2 for example i can view a web page without switching to the internet explorer?

View 9 Replies
View Related
Feb 25, 2014

I'm looking to do some simple maths with ranges in Excel but I'd like a way to be able to input all these formulas automatically although I am pretty sure a single formula per column could do it all automatically. I've got to put the sums in AD to AF on the first line of each location, but the maths is for the entire location's range.

[URL]

View 3 Replies
View Related
Jul 23, 2009

Attached file where i m not able to split data in seperate seperate coloumn

View 3 Replies
View Related
Apr 3, 2008

I know you can take a number from one cell and combine it with number from another cell and make it one number. What I need to do is the reverse. Take a two digit number in a cell and separate it into single digits in two cells. If you have the number 50 in a cell, then is there a formula that will take the 5 and put it in cell and take the 0 and put it in the cell beside it?

View 4 Replies
View Related
Jan 17, 2014

I have multiple worksheets with part numbers and prices for different computer parts. On each worksheet I have multiple sets of part numbers and prices but I only need one the information from specific part from each worksheet. Luckily, the part number I need is also the name of whatever worksheet contains it. I want to take the part numbers and prices from the parts I need and put them in one master sheet called "PartsNumbersCombined". Currently I haven't even attempted to format the data in PartsNumbersCombined, I am just trying to actually pick up and move the correct data. Here is my code:

Sub harvest()

ShtCount = ActiveWorkbook.Sheets.Count

For i = 2 To ShtCount

[Code].....

The part numbers are in column A and the prices are one row down in column C. I feel like I am close but I can not get anything pasted on my master sheet.

View 1 Replies
View Related
Aug 26, 2006

I've got an If statement in Excel which features several VLookups - I need the IF statement to return differing results to 2 different cells, is this possible?

In plain English, I'm looking for something like

If(Vlookup(A2, B2:D5, 4, False), C6="y" And D7="ok", "False")

Obviously this is a very crude example

View 3 Replies
View Related
Feb 18, 2014

Use filter for 2 columns of a CSV file, column A and Column B for certain words. Say I apply a text filter: contains "word1" or contains "word2" to Column A. Then I get the results. After that, I remove the filter to Column A then apply the same filter to Column B. The thing is, I don't get the results in Column B, instead, I get the cells in Column A wherein Column B is filtered PHOTOS BELOW:

The data that I get for this filter are:

And Word1 you

Word2 is blank

Apply filter to Column B, get the cells filtered in Column A:

The data that get for this filter are from Column A (which are cells filtered from Column B filter)

And Word1 you

Is the blah

Word is all

The results should in a single Column for both filter:

I have more than 100 files that needs to filtered this way, is there any way I can do this automatically?

Here is what the file looks like:

The results I hope would be possible:

Automatically without having to open all the files and have the results of all of it in 1 single Excel file?

----or----

If the above is not possible, open each file and automatically apply the filter into a column in just 1 click and without having to type the same filter for each column.

I found a code to combine all CSV files into 1 Excel file, but half of my files has more than 500k rows and the Excel's limit for rows is around 1million+.

View 9 Replies
View Related
Oct 5, 2009

I want to be able to look up values based on what I put in a seperate cell. For instance, I want to be able to type in 11 in cell B1 and have A1 return the value for E11. Then if I change the value to 10 in B1, the value for E10 would be returned.

View 3 Replies
View Related
Oct 27, 2009

During work this thing stuck me that i have a column A1 an amount like 12345663..now what i want in column B1 the same amount but except first 3 digits..for example instead of 12345663 i want only 45663 in column b..

View 4 Replies
View Related
Apr 21, 2009

I have a spreadsheet with two sheets, 'Sheet0' & 'Sheet1'. In 'Sheet0' I have a column named 'A_Sheet0' containing a list of numbers from Rows 2 - 50. In 'Sheet1' I have 3 columns, the first containing numbers 1 to 50, the second, 'B_Sheet1' containing a list of ascending numbers and the third is the column of interest. This column entitled 'Nearest Value' must read the corresponding value of Column 'B_Sheet1' then find the closest number to that from the numbers in 'Sheet0', column 'S_Sheet0'.

I have included a sample file with this thread, and in the 'Nearest Value' column I have manually input some of the nearest values for your information.

View 7 Replies
View Related
Feb 10, 2010

I had getting a hyperlink from a Shape to a Cell on seperate worksheets and the macro works fine:

View 4 Replies
View Related
Jun 23, 2013

I am somewhat new to excel and have a task I have a catalogue that I need to separate multiple printer models that all have the same part # into individual line items. This will save me weeks of work.

I have this:

Model

part

DCP-7020/HL-2030,2040,2070N/MFC-7220,7420,7820N

TN350

And want to end up with this:

Model

Part

DCP-7020

TN350

HL-2030

TN350

HL-2040

TN350

[Code]...

Or even this:

Series

Model

Part

DCP

7020

TN350

HL

2030

TN350

[Code]...

View 5 Replies
View Related
Jun 26, 2008

I have a list of sales enquiries 1600 rows long. Each has a brand recorded in cell J (from j4 above is headers)

I have 4 brands

A, B, C & D

I would like to copy the data from the master sheet into 4 tabs lables A, B, C & D depending on the brand recorded in J

View 9 Replies
View Related
Dec 10, 2007

I have a bunch of cells (could be varying amounts from 2 to about a 100). I need a macro which can find out how many rows in column A contain values and then i need to pick values from each cell in column A and put them in Cell B2 seperated by a comma.

eg.

Column A Column B

22 22,35,67,34,56

35

67

34

56

Column A could contain as many as 100 values.

View 5 Replies
View Related
Apr 6, 2008

i have two sheets, one to display results (Reults tab) & the other tab containing the data (Data tab)

what i am trying to do is some how create a search function and have a forumula which contains a LIKE function that looks up the data table

RANGE = Data!A2:K255

the search needs to lookup the primary column Data!B2:B255 ... if any results are found .. show them on the results tab.. and if multiple results are found, display those as well.. (in either instance, the whole row of information in respect to the results need to be dislayed and hopefully no duplicates are found .. eg, Data!A:K of a hit)

is there a formula that can achieve this? oh, the search is TEXT based and there should be no empty cells within the dataset

after some MASSIVE googling, i have stumbled accross this

B1 = Search box (txt field)

A6 (which will be a hidden column) contains =MATCH($B$1,Data!A2:A255,0). this formula provides the first instance of the result and provides the row number

A7 contains =MATCH($B$1,OFFSET(Data!$A$1,A6+1,0,8-(A6+1),1),0)+A6.

this is supposed to look for the next row number which contains a match and provide that row number

and througout my other columns, i have

B6=OFFSET(Data!$A$1,A6,1)

B7=OFFSET(Data!$A$1,A6,2)

B8=OFFSET(Data!$A$1,A6,3)

and so on

2 things i cannot recitify..

1, the match has to be EXACT ... unfortunately i cannot use exact .. needs to be LIKE .. eg, i cant use the search word "boat" as the range of data has "boats"

2, it comes up with multile .. irrelevent results.

View 10 Replies
View Related
May 20, 2008

I have cells in a column that record time in date. Unformatted it would appear as 19789.51407 but formatted to show time and date it would as appear as 3/6/54 12:20 PM. I am making graphs with the data and I want the title of my x axis to read "GMT Time (mm/dd/yyyy - mm/dd/yyyy)" or "GMT Time (mm/dd/yyyy)" depending on if the event spans more then one day. Using the following code, it almost accomplishes this.

Dim strDate As String

Range("CO3").Value = Range("A3").Value

Range("CP3").Value = Range("A" & Drag).Value

Range("CO3:CP3").NumberFormat = "m/d/yyyy"

If Range("CO3").Value = Range("CP3").Value Then

strDate = "GMT Time (" & Range("CO3") & ")"

Else

If Range("CO3").Value < Range("CP3").Value Then

strDate = "GMT Time (" & Range("CO3") & " - " & Range("CP3") & ")"

End If

End If

Where "Drag" is a variable that signifies the total number of cells in the column; ie the first and last dates. It compares the values and saves the results as a string. The problem is that when the string is saved it saves the date in mm/dd/yyyy hh/mm/ss. How can i separate the date from the time so I can have the title of my x axis appear as i need them?

View 3 Replies
View Related
May 2, 2009

I want to ask you in this kind of formula: =IF($B11=$B$51;$E11+$C$51;IF($B11=$B$52;$E11+$C$52;IF($B11=$B$53;$E11+$C$53;IF($B11=$B$54;$E11+$C$54 ;IF($B11=$B$55;$E11+$C$55;IF($B11=$B$56;$E11+$C$56;IF($B11=$B$57;$E11+$C$57;IF($B11=$B$58;$E11+$C$58 ;0))))))))

is 8 IFs the most I can use? And if yes, is there a similar formula to use so that I can use 12 variables and all the results to be in a single column?

View 5 Replies
View Related
Oct 28, 2009

I have two sheets in my workbook, and I am trying to reference one chart's value into the other. (attached)

I have referenced successfully by manually typing in the reference on row 2 for all values on Sheet 1:

Sheet 1 - C2 needs to reference Sheet 2 - B2. (Sheet2!B2) - no problem all the way across to F2. All those values are correct b/c I manually typed in the reference.

The problem comes when I just want to drag over that same formula to increment for the other cells. It's not incrementing the formula like I need it to.

So, Sheet 1, Row 2 shows how the correct values I need to pull over but was done in a manual way. Sheet 1, Row 5 shows how it increments incorrectly when I try to just drag/copy the formula over. What I need is for Sheet 1 - D5 to reference Sheet 2 - C3, but instead if I try and drag to copy the formula instead of manually typing it in, it increments when I drag reference D2 instead of C3.

View 2 Replies
View Related
Apr 4, 2007

I have a row of raw quality control data, but some are not in control and should not be used in the calculation of statistical data. There are not a lot of them, so I can manually select these (I use a red fill color for the cell to signify bad data), but I would like to be able to keep these data displayed but not have them included in the calculations.

View 3 Replies
View Related
Jan 7, 2009

If I have, in one cell (call it D1):

EH,DR,HU

and in a lookup table on another sheet:

A B

1 ED T

2 EH F

3 DR G

4 HU H

5 SE E

6 YU E

I need to be able to lookup the values in D1 on the table and return the values in column B to a single cell (say E1), also comma separated...

eg...

F,G,H

View 9 Replies
View Related
Jul 8, 2014

I'm trying to do two things:

1. I'm trying to show the formula of specific cells in the work sheet. So far I've only found out how to show formulas on the entire worksheet. I imagine there has to be some way of me doing this without using macros.

2. Here's the doozy. What I'm trying to do is use the base code for a formula that is stored in one cell (Formula Page: B5:B7) and apply it to other cells (Calc Page: C4:C6). In other words, I want to apply the cell formula from B5:B7 to the cells C4:C6 and use them to calculate the TOTAL COST. I want it so that whenever I manipulate cells B5:B7, they are also appropriately manipulated in C4:C6.

Please see attached for reference. Attachment 33077

View 14 Replies
View Related
Oct 22, 2008

I set the time format to hh:mm:ss.000 to show also the milliseconds.

How can I get the milliseconds to another cell for making some calculations?

View 8 Replies
View Related