Excel/Questions Answered by Expert Tushar Sakhalkar

SubjectDate Asked
Reading values & looping10/5/2009
  Q: I have been trying to find help to create a simple(at least I think it is simple!) macro for sorting ...
  A: I am sure MACRO can be written but my first effort would be to avoid MACRO and achieve it by ...
Macro Help10/4/2009
  Q: I am just learning the use of a macro. I need certain cells from sheet 1 to be posted on sheet ...
  A: You will need to -- Worksheets("Sheet1").Select Cells (i,j).select -- Replace i / j with your cell ...
Excel macros6/5/2009
  Q: How to run a macro which is in a sheet from another sheet in the same work book?
  A: 1. Create a button and assign Macro. Click the button to run. 2. If you are using Excel 2003 or ...
Can control toolbox check box data be manipulated into a pie chart?6/3/2009
  Q: I have already created a worksheet that has several checkboxes created from the control toolbox. ...
  A: Answer is yes. Check box results are linked to a cell. If you have not done it do it by maintaining ...
regarding grid lines in excel Sheet6/1/2009
  Q: Sir, 1. How to insert gridline in one cell in Excel, nowadays we are applying gridlines to various ...
  A: Vinod, (1) Firstly, there is no cell A in excel. A is a column. The cells are specified as A1, B5 ...
identifying duplicate data in Excel 20031/25/2009
  Q: I'm virtually a complete novice on excel, and need help. I have two columns of data A and B, and i ...
  A: There is no direct function to achieve this. However, it can be done through a procedure. In C1 ...
excell vba macro to count consecutive blank cell1/25/2009
  Q: PLEASE FIRST TRY TO UNDERSTAND WHAT I AM LOOKING FOR. YOU HELP WILL BE GREATLY APPRECIATED. I need ...
  A: It is difficult to correct someone else's Macro. But if you do not mind, try using this one that I ...
COMBINATIONS1/24/2009
  Q: VERY IMPRESSED WITH YOUR WORK CAN YOU PLEASE HELP ME WITH THE FOLLOWING CAN NOT FIND ANY ANSWER IN ...
  A: With my limited abilities of Excel, I think that this is not possible with excel functions and you ...
Importing an existing Spreadsheet Macro to a new spreadsheet1/22/2009
  Q: I have two different Excel files that I have created and I want to merge the two. How can I import ...
  A: I have never really come across this... But my trials show one way. If it suits your requirement you ...
Finding next avaliable row1/21/2009
  Q: I am very new to VBA and hardly worked on it... With the knowledge i have i have recorded a macrtp ...
  A: If you are sure that all your cells in Column A are non-Blank, then you can use something like- ...
Formula1/20/2009
  Q: I really hope that you can help me with this: i am trying to keep up with the current volume. the ...
  A: A, I do not know the compulsions of maintaining the data in this manner. Is it not possible to ...
Breking down lengths into stock lengths.1/20/2009
  Q: I have a spreadsheet that takes data from an AutoCad drawing and converts them into feet and inches ...
  A: As you would appreciate, Computer is a HIGH SPEED IDIOT. It can do exactly as you tell it to do. So ...
Formula1/19/2009
  Q: How to split principal porting and interest portion from an EMI instalment? For example, by using ...
  A: Follow these steps- B2 = Original Loan Amount (In Rs.) B3 - Loan Rate (As 13%) B4 = Tenor in Months ...
Excel Formula1/17/2009
  Q: I have an array of words say {cms, pda, visit, clinical, intake}. Now I have an excel sheet which ...
  A: STEP 1: Store your reference array in L1:L12 STEP 2: Have all your values (for checking in Column ...
NEED HELP ASAP!!!!1/12/2009
  Q: i have a list of names and numbers all in a notepad document all the names and numbers gone one ...
  A: STEP 1 - Get the Note pad data in Excel Method 1 Start Excel File-Open (Ctrl-O) Browse for note pad ...
selecting almost duplicate records1/12/2009
  Q: I have duplicate names and perhaps ages within a record set (e.g. name, age, score) but the scores ...
  A: Actually, I need more details of your worksheet. But I will try to visualize and answer- Column A - ...
auto average in macro1/9/2009
  Q: I am wrting a macro and am wondering if it is possible to write an auto-average into the script ...
  A: Presuming you do not have any blank cells within the first cell and last cell, you may use i = ...
restrictions in excel sheet for different user1/8/2009
  Q: Would it be possible to put a restriction to each sheet of 1 Excel file? I will be making a phone ...
  A: The way I think this can be done is by protecting Sheet1 ans Sheet2 with different passwords. FOR ...
Calculate Elapsed Days1/8/2009
  Q: I am trying to calculate elapsed day between two dates only when there is a closed date in Column C. ...
  A: I presume you know the formula you want to use to get answer in C3. If I call it a formula, then in ...
Comparing lists.11/19/2008
  Q: I've got two fairly long lists, one containing client information, one containing transaction ...
  A: (1) There is function called MATCH in excel but I think it will not serve your purpose. You can ...
Excel Formula11/18/2008
  Q: Have been trying to come up with a formala that will return a list of contracts that are not renewed ...
  A: Sarah, I cannot think of a formula that can achieve this. I can attempt to write a MACRO if it is ok ...
MS Excel help11/15/2008
  Q: How do I sort successive 30 numbers in a column and put them in separate new column. Like I have a ...
  A: Part Second: If you enter formula =AVERAGE(INDIRECT("A"&(ROW()-1)*30+1):INDIRECT("A"&(ROW()*30))) in ...
Exccel11/15/2008
  Q: How to protect a column in Excell; Appreciate your help. BR
  A: Some background- (1) Protection of any range (including a column) comes in to play only when a ...
forumlas of ecels11/13/2008
  Q: can u give me or learn me formulas of excels in business and have acounts in excels tell me regards
  A: for learning various topics of MS Excel please visit- http://www.functionx.com/ - Site for self ...
Excel - Conditional Formatting - Dates11/13/2008
  Q: Can you help me with dates in conditional formatting? I have a column of dates (G) in a ...
  A: Select Cell G1 Format - Conditional Formatting First Window - Formula Is Second Window - ...
excel Help11/12/2008
  Q: I would like to know how you make excel show a picture / image if a condition has been met. E.g if ...
  A: For Excel 2007.... Instead of - Insert -> Name -> Define Do - Formulas - Name Manager - New You will ...
excel Help11/11/2008
  Q: I would like to know how you make excel show a picture / image if a condition has been met. E.g if ...
  A: First, you'll need to have one cell that will use an If-statement to display the word related to ...
preventing a cell from changing11/10/2008
  Q: I have one sheet in a workbook that is linked to another, the first sheet contains raw data and the ...
  A: This is a standard feature of Excel and I doubt whether you can prevent this happening. But I can ...
merge from excel to excel11/8/2008
  Q: Can I merge from an excel document to another excel doc? I need instruction as to how this works as ...
  A: Daniel, If you want to use a DRAFT of letter with some fields with values for fields coming from ...
merge from excel to excel11/7/2008
  Q: Can I merge from an excel document to another excel doc? I need instruction as to how this works as ...
  A: Can you please elaborate on what you mean by merging? Are columns in two excel files identical and ...
Calculate age11/5/2008
  Q: Please help me to calculate age of ppl in years, months and days using their Date of birth.
  A: We can use the formula below to return the age of any person in years, months and days. It makes use ...
VBA Code Replace Command11/1/2008
  Q: I am looking how to write VBA code for a macro in excel that would look to cell "I4" and take the ...
  A: I have not fully understood your requirement.. Check if I am right.. In Cell I4, you will have some ...
autopopulate cells to the left if cell has value10/30/2008
  Q: I have an excel spread sheet. If I enter a value of 1 into cell H12 I want all the cells to the ...
  A: Bonni, I do understand why you need more than 7 IF functions. May be your question is not clear to ...
adding percentage to a figure10/29/2008
  Q: i have got a quite big excel data base that needs updating. i know it is possible to add or subtract ...
  A: The simple answer is YES. How, please build your logic carefully and use IF statements along with ...
Excel Macro for selecting a range of text10/26/2008
  Q: I'm creating an Excel macro which graphs the attributes of a collection of projects. All the ...
  A: METHOD 1: Emulating - (1) Select cell A2 (2) Ctrl-Alt-Right Arrow Range("A2").Select ...
counting cells10/21/2008
  Q: I have a spreadsheet in Excel, with actual / forecasted spends for every month in columns (from ...
  A: Mohsin, 1. I have understood the requirements correctly and hence, the formula applies. 2. YES, you ...
counting cells10/20/2008
  Q: I have a spreadsheet in Excel, with actual / forecasted spends for every month in columns (from ...
  A: Assumptions: Row 1 has Months in A2 to A14. Months have been entered in Date Format. Column A has ...
How to loop Rows in Macro?10/20/2008
  Q: I need to write Macro for AutoFilter. But I do not know how do write macro for this type of ...
  A: Unfortunately, I am not a trained programmer and I have learnt all my Excel VB Macro through Trail & ...
Data entering with Table10/17/2008
  Q: i made a table for entering data to excel sheet.in this i want add one code for adding number ...
  A: I am still not sure what you are looking for but I spell out my understanding and solution below. ...
excel- cross sheet validation10/17/2008
  Q: can you tell me if we can put a list validation between 2 sheets. meaning if the list is in one ...
  A: Direct answer is NO. But you can have a workaround for this. Please Follow these steps- -- In ...
conditional formats10/16/2008
  Q: I have a formula in a cell as follows =IF(L31>0,REPT("g",(L31/10)),"") This simply counts and ...
  A: 1. It is not clear to me which cell you are trying to apply conditional formatting. 2. I presume, ...
copy a formula using multiple worksheets10/15/2008
  Q: How do I copy a formula and paste into numerous rows on my summary sheet using the following ...
  A: I have not completely understood your requirement. But try the following- 1. Click on the sheet tab ...
proper function in excel10/15/2008
  Q: I have a data column which has uppercase data in few of the rows. I want to use the 'proper' ...
  A: I do not think any function will convert whole of column. I suggest- (Assumption- text data in in ...
VBA copying multiple worksheet and naming them from a list10/15/2008
  Q: I am trying to create a macro that will copy worksheets, as many times as there are names on a list, ...
  A: Assumptions: You have entered the names in Sheet1 Column A Sub Macro1() m = ...
Selecting Non contiguous Range10/14/2008
  Q: I run a macro that selects a range of data. my dataset has changed and currently i am trying to run ...
  A: Le me explain your code as if you are doing these steps in Excel manually- (1) Range("A11").Select - ...
Excel Macro for inserting a row10/14/2008
  Q: Ok here is my issue. I know that when creating macros every detail is very important. I am trying to ...
  A: I have modified your MACRO as- Sub Macro2() ' ' Macro2 Macro ' With ActiveWorkbook.ActiveSheet ...
excel macro10/13/2008
  Q: how do i make this macro work through the entire worksheet? Sub cylinder() ' ' cylinder Macro ' ...
  A: David, why it is not working is because my assumption No.1 (There are no BLANK cells in ColumnA) is ...
excel macro10/13/2008
  Q: how do i make this macro work through the entire worksheet? Sub cylinder() ' ' cylinder Macro ' ...
  A: Presumptions: 1. There are no BLANK cells in ColumnA 2. You are looking for Cell=Cylinder and cells ...
excel macro10/13/2008
  Q: how do i make this macro work through the entire worksheet? Sub cylinder() ' ' cylinder Macro ' ...
  A: Often recording a MACRO is not enough as the recording will be for specific range. You need to ...
Import data from notepad10/12/2008
  Q: I have data that is more than 65k in notepad.Now i want to Export this data in excel, But when i ...
  A: (1) Best solution would be to use Excel 2007 which does not pose limitation of 65536 rows. (2) I had ...
Ask About Excel10/10/2008
  Q: I want to know if can help me, how placing the option of spelling of the cells, that is to say, ...
  A: Please visit following URL. ...
transpose10/9/2008
  Q: Is there any way to transpose vertical to horizontal data without pasting? Thanks a million ANSWER: ...
  A: I think the question is not clear to me.... If Sheet name is Order Details (Original Data) Replace ...
transpose10/8/2008
  Q: Is there any way to transpose vertical to horizontal data without pasting? Thanks a million
  A: The simple answer is it is possible. How? It depends on range you need to transpose. I am giving ...
excel help10/8/2008
  Q: i have Cell A1,A2, AND Cell D1,E2, VALUE OF THE A1 CELL IS 0 AND VALUE OF THE A2 CELL IS 1 IN D1 I ...
  A: Irfan, Firstly, I do not understand how your getting 5 when A1 is 0 and D1 is =A1+4. Anyway, If ...
Split one cell content into 3 cells in excel using Macros6/30/2008
  Q: Hope you are doing good. I need your help regarding macros. Here my scenario is: I have a cell ...
  A: Usually text in one cell is aplit into three (or less or more) cells by TEXT TO COLUMNS for which ...
EXCEL VB6/30/2008
  Q: We are sorry, but Edward H. Mori wasn't able to answer yourhello sir ... how r u ,,,,, glad that i ...
  A: I am not sure if I have understodd your requirement properly. This is what I understand... You have ...
Excel reference6/24/2008
  Q: How do I take the last cell updated in a column and plot it in a single cell For example: Column B ...
  A: Dave, BLANKS at the end of column should not matter. I did not understand "A1 Returns 21". Do you ...
Cells6/22/2008
  Q: Sir How r u Thanks For the previous solution Sir, my another question is I have E-mails ID in A1 ...
  A: I can definitely give you a QUICK solution but please give these clarifications- 1. Is there a ...
text6/20/2008
  Q: sir Sir,is it possible if A1= 20/6/2008 then B1=Friday, C1= June Any formuls Thanks in Advance ...
  A: QUESTION-1 If you use =WEEKDAY(A1,2)in B1 you can get 5 i.e. 5th day of the week starting Monday. ...
Formula not working6/19/2008
  Q: I am using =IF(Z80=$A$1,$B$3,AA80) formula and day by day I collect data in these cells but some ...
  A: I think the problem is that in H3 you are entering a formula that uses H3 (Circular reference). When ...
applying formula default to all worksheets6/18/2008
  Q: I WANT TO APPLY THE FORMULA, HEADING AND LOGO OF ONE WORKSHEET TO ALL OTHER WORKSHEETS.I WANT TO ...
  A: QUESTION 1 I am not fully aware of Excel 2007 but I am answering from my experience of Excel 2003. ...
Excel Macro copy/paste6/17/2008
  Q: I'm trying to write a small macro. I want it to copy from two cells within my worksheet, which will ...
  A: I am sure this MACROP was recorded and it was recorded with RELATIVE addresses ACTIVE. Any way, let ...
help with excell data6/17/2008
  Q: I have a rather lengthy spreadsheet (37k+ rows) with name & address data in one column that I need ...
  A: First the good news. You can achive this by a Macro and I can write one for you. Now, the reality. ...
Excel - Allowing6/16/2008
  Q: I want to have one of the cells only accept "0" or multiples of "13" -- Basically, 0 or 13 or 26 or ...
  A: Yes... We are using alidation only. But a CUSTOM validation rather than STANDARD validations ...
Excel - Allowing "0" or multiples of a certain number in a cell only6/15/2008
  Q: I want to have one of the cells only accept "0" or multiples of "13" -- Basically, 0 or 13 or 26 or ...
  A: You reached a right place but probably could not utilize it properly. Please go to ...
Auto populate date in a calendar for a given start date6/13/2008
  Q: I'd like to enter a start date in C2, then have three rows of 7-day weeks auto populate with the ...
  A: I do not know, if I understand you fully. But if B2 = "Sunday", B3 = "Monday and C2 = 6/15/2008"then ...
conditional formatting6/12/2008
  Q: I have conditionally formatted a cell and have managed to copy this down the column. I am using 2 ...
  A: Amanda, The references & formulae in excel are by default relative. Meaning, if a formula (or a ...
Transposing a list with a blank line dividing contacts6/11/2008
  Q: I have a list of addresses with a blank line dividing one contact from the next. I have included ...
  A: try out the following macro- (Two consecutive blank lnes will terminate the macro) Sub transpos() i ...
Transposing a list with a blank line dividing contacts6/10/2008
  Q: I have a list of addresses with a blank line dividing one contact from the next. I have included ...
  A: If - A1 - AAG - Club Empleados A2 - Av. Corrientes 538 piso 11 A3- (1043) Capital Federal A4 - ...
Forumula, I think6/9/2008
  Q: I have little experience with Excel (using 2000) and I need to perform what I think should be a ...
  A: Please follow folowing steps- -- Enter 1 in Cell A1 -- Select Cell A1 -- You will find a small ...
Conditional Formula6/9/2008
  Q: I would like to know if there is a formula that can disregard negative numbers when summing up the ...
  A: I do not think there is a way to add (SUM) the numbers with such criteria. However, I can suggest ...
calculating time worked in excell6/6/2008
  Q: what is the formulea for calculating time worked in excel using military time? column 1 time in, ...
  A: Salam Aalekum. Unfortunately, I do not understand Military Time. If you can give some example and ...
Row\Column width6/4/2008
  Q: 1 .Can u plz provide me a code for fixing column width in a macro ? ANSWER: I can always ...
  A: If you have 3 sheets, you can use following code. Replace 3 with suitable number. Sub try() For n = ...
Calculating Hours: Minutes6/3/2008
  Q: How does one calculate the actual time where it will where it will continue to calculate the number ...
  A: Karen, In cell A1 enter - 6/2/2008 10:15:00 In Cell A2 enetr - 6/3/2008 12:00:00 In cell A3 enter - ...
Row\Column width6/3/2008
  Q: 1 .Can u plz provide me a code for fixing column width in a macro ?
  A: I can always provide you with the code lilnes but then why don't you try and record a macro. The ...
make cell address a value6/3/2008
  Q: I would like to make cell locations (A1, A2, etc.) show up as values ("A1", "A2") in the adjacent ...
  A: I will reply your answer in steps- STEP 1 - TO SHOW A COLUMN NUMBER =COLUMN(D5) will show column ...
Calculating Hours: Minutes6/2/2008
  Q: How does one calculate the actual time where it will where it will continue to calculate the number ...
  A: Since you know how to calculate it, I will stick to the method to SHOW your answer in HH:mm:ss ...
Macro help4/22/2008
  Q: i am having a problem in excel. I made a macro that tell to hide some rows like: Sub ATI8() If ...
  A: Yes.... Macro can run when a cell is changed. Follow following procedure... -- RIGHT click the Sheet ...
dates4/22/2008
  Q: i am looking to find the last date of service for a client. the data dump has a cloumn of clients ...
  A: Joe, Based on presumption that we have Sheet1 with running data - ColumnA has Client Names and ...
dates4/22/2008
  Q: i am looking to find the last date of service for a client. the data dump has a cloumn of clients ...
  A: Joe, Unfortunately, as per my knowledge, VLOOKUP and MAX will not work together. I will trying to ...
Macro help needed4/22/2008
  Q: I have a lot of data to be formatted in Excel and I'm new to excel macros. What I want to do is: 1> ...
  A: Recording a Macro is not a complete solution for approaching Macros. One should be able to modify ...
dates4/21/2008
  Q: i am looking to find the last date of service for a client. the data dump has a cloumn of clients ...
  A: Joe, I cannot understand your requirement. But from what I understand, =MAX(A1:A29) - Where A1:A29 ...
Excel project4/19/2008
  Q: 1. We are working on a new Hewlett Packard xw4400 Workstation with 4 Gigs of RAM, 300 Gigs of hard ...
  A: Sorry to disppoint you but this is not quite my area of expertise. However, I have experienced ...
Excel4/17/2008
  Q: What formula would you use if you had a first and last name in a single cell and you wanted to ...
  A: Let us say you have a First Name & Last Name (seperated by Space) in A1. Then Formula in B1 will ...
Excel IF function (multiple IF functions)4/15/2008
  Q: I'm not quite sure how to create a multiple IF function ! What I have is basically a chart with ...
  A: Adriana, Here are some rules before you start- (1) You can use maximum of 5 IF fucntion inside each ...
calculating more work time more pay "IF"4/14/2008
  Q: I would like to produce a spreadsheet that calculates the more you will work the more you will get ...
  A: I think your logic is perfect but there is a small problem in understanding of the way Excel works. ...
How to count number of blank spaces between numbers4/11/2008
  Q: . I have data in 3 rows (They so happen to be all the same number). I'm trying to come up with a ...
  A: I am not able to corealte your query with data and count you indicate below your query. Do you mean ...
lookup 2 conditions4/11/2008
  Q: Please help me with this condition where i have to lookup 2 conditions to get the result. ...
  A: I cannot say that it is 100% clear but I will answer the question with few assumptions- (1) Users' ...
Excel Query4/7/2008
  Q: How can i use the following formula: =Sumif($A$1:$A$70,"Mar'08",AD$1:AD$70) using data from a ...
  A: Firstly let me let you know that the question is too brief to understand the full requirement. You ...
covert number to text4/5/2008
  Q: I was looking for a way to convert a number to a text in the same cell. example, if I enter 1 in a1 ...
  A: There is no EASY WAY. this will need to be addressed by a Macro. Also, the Macro itself will be a ...
compare cells in one row4/4/2008
  Q: I have 2 sheets in one worksheet that i need to compare their rows. Each column has one ID column in ...
  A: I presume, there are MANY rows and they are not in same order as far as ID column is concerned. ...
reference from lists4/3/2008
  Q: Simple question, I have 2 worksheets A and B. A has a list, I want this list to copy in B. BUT I ...
  A: Imagine you have a list in Sheet1 at A1:A10. Now you want to have this list in Sheet2 at A1:A10. But ...
HELP!4/3/2008
  Q: I am trying to create a Holiday Planner with excel, and have to split the info onto 2 worksheets, ...
  A: I will need to presume a few things here. Name of the first sheet (for Apr-Sept) is SHEET1. Name of ...
Writing a script for a command button11/8/2007
  Q: I know that there is a way to set up a command button that will delete or clear specific contents of ...
  A: Insert the command button. Right Click -- Assign Macro You will see something like ...
Target setting11/7/2007
  Q: I have been given a task of setting the targets basing on the historical data.How can set the ...
  A: You need to provide me sample data / format to work on. Percent increase can be simple - ...
#VALUE! & #N/A11/5/2007
  Q: Regarding the cell outputs of #VALUE! & #N/A, I am trying to create a statement to say, for example ...
  A: Excel does not treat "#VALUE" as such though it displays so. What you need to do is tackle the root ...
vlookup commission plans11/2/2007
  Q: I am trying to develop an Excel sales commission plan program for a real estate sales purpose. I ...
  A: Firstly my feel is VLOOKUP will not be correct one to be used. We may need to use nested IF ...
Excel Formula11/2/2007
  Q: My Spreadsheet is as follows Column A - Date = eg 1/1/1900 Column B = Public or Private Column F = ...
  A: You need to explain the required logic in detail. My Logic- (1) If Private then Private else (2.1) ...
vlookups10/31/2007
  Q: I'll try to explain what i want to do. I want to compare two tables using vlookup that when a value ...
  A: To begin with, let me understand the exact requirement. "comparing tables" will not make much sense ...
Excel Formula10/31/2007
  Q: My Spreadsheet is as follows Column A - Date = eg 1/1/1900 Column B = Public or Private Column F = ...
  A: You are already doing much of the task. All you need to know is current date is stated as Today(. ...
Excel Formulaes10/26/2007
  Q: There are the following data on each row(Name, Bill Number, PO#, QTY, Rate, Amount) in sheet1. I ...
  A: I had answered very similar question on 22-07-2007 for Srivastava. Please go through the interaction ...
number should get convert to alphabets10/26/2007
  Q: The input i key in the excel is number(ex:1,2,3) and this should change into words(for ex: one,two, ...
  A: Excel does not have any functionality for this. However, on net you will find number of programs ...
VLOOKUP with 2 conditions10/24/2007
  Q: I am not sure how to perform a vlookup with 2 conditions. Sheet 1: A B C ...
  A: Unfortunately, EXCEL does not permit VLOOKUP on 2 columns directely. You have 3 options- (1) Wrting ...
Emergency MS Excel VBA Programming10/23/2007
  Q: I have a spreadsheet that is used to track documents and I want to create a call sheet. For ...
  A: Jeanna, It is difficult to correct a code but I can give you a new one that will perform following- ...
Since Hit10/22/2007
  Q: I have a set of lotto draws: 14 16 21 31 42 46 36 5 10 18 30 32 47 40 1 4 7 29 31 49 30 ...
  A: I do not know whether any function can do the job. However, I tried a small MACRO with following ...
EXCEL10/18/2007
  Q: in a cell string value (10pcs) and numeric value (0.69) in another cell and multiply together is it ...
  A: Yes I understand Anuj. But what you can do if it always pcs is that use formula- ...
create a formula10/17/2007
  Q: i need to find a formul that will find cells with a certian value in them ,but only part of the ...
  A: I am sure you can have a better answer.... But my trials with combination of COUNT or COUNTIF with ...
Excel formula / vb script needed10/16/2007
  Q: Ok, i have two columns in one workbook. A column for Completed/Uncompleted and a Date Sent column. ...
  A: I have not understood the question.... (1) You have two columns (2) Column 1 has entries as either ...
Sumif & Array Sumif10/15/2007
  Q: I would like to ask you 2 questions: 1) Which is the function used for sumif funtion with multiple ...
  A: (1) There is no SUMIF for multiple criteria. If you really need one you have two options - (a) Use ...
vLookup Vba problem10/14/2007
  Q: I have this formula in cell W2 "=Q2-VLOOKUP(M2;C:H;5;FALSE)" in cell W3 ...
  A: It is very clear that you know VBA programming. So I will be brief in my answer.. Probably you can ...
Excel: link cell data to sheet name10/10/2007
  Q: I have workbook with 8 sheets. Sheet 1 i called "Week summary", sheet 2 is "Monday", ... Sheet 8 is ...
  A: Tina, You need to provide me with a complete picture. Are you intereseted in doing this only in one ...
Find a row with Macros10/8/2007
  Q: I have an Excel spreadsheet with a small database of clients. The idea of the application is to ...
  A: Not everytning can be done my RECORDING of a macro. You may need to modify the recorded macro ...
Vlookup Function10/8/2007
  Q: I'm new to the Vlookup function so I'm not sure if I can use it for my current task. I have two ...
  A: Firstly, the assurance.. VLOOKUP will work. Secondly, the caution... It will not work directly. :-) ...
Need vba code10/7/2007
  Q: I would like code that will delete all extra rows below that last populated cell in row B. For ...
  A: Writing a code for this is very easy and it will be a 4 line code. But I personally feel, it is too ...
deleting empty cells in btw data10/7/2007
  Q: i'm working on some stock market data and wish to delete the empty cells in btwn data so i could ...
  A: Ibrahim, you could do one of the following things- (1) Sort the data so that blank rows come at the ...
Excel Count formula10/6/2007
  Q: I have the following number sets. I want to count the number of occurrences between every 1 number ...
  A: Unfortunately, AND function will not work (as per my trials) with COUNTIF. My suggstion is- In ...
making two different cells keep adding up to 10010/4/2007
  Q: I have two colomns of 9 numbers. The Left hand colomn is set to 100 and the right hand one set to ...
  A: What you are trying to achieve is ability to have formula & value in same cell. This will not be ...
Fill cells Colour on basis of cell figure10/4/2007
  Q: I am currently producing a spreadsheet which pulls in a figures which is the difference between two ...
  A: Irrespective of amount of numbers on the spreadsheet, Conditional formatting should work. I am ...
macros10/3/2007
  Q: ActiveSheet.Shapes.AddTextbox ...
  A: (1) The correct sysntax is - myDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 100, 100, ...
vb code for input in Excel9/30/2007
  Q: I am trying to get a very simple data entry macro to work without a great deal of success. I want ...
  A: I think you have gone by the route of recording MACRO. Generally, I go by the way of writing it. ...
Verifying Names in multiple worksheets9/26/2007
  Q: Ok here is what I am trying to do. I have two worksheets of over 4000 names. column A is the last ...
  A: I will take up your second problem first. Since you have many smiths, what you can probably do is ...
sorting data9/20/2007
  Q: I am looking for a way to sort data in a order other than ascending, alphabetical or numerical. ...
  A: Yes this would be possible by a MACRO. However, I need to know the criteria for sorting. In the ...
XCEL : can I replace text w/ a new column?9/20/2007
  Q: Greetings, I have an XCEL spreadsheet with a list of names and titles, formatted like this: Ronald ...
  A: Let me reframe your question.... You have data like "Ronald Anderson - vice president" in Column A ...
SPREADSHEET PROTECTION9/19/2007
  Q: Does anyone know if you can protect an Excel Spreadsheet so that you cannot copy a cell from that ...
  A: I presume you need to protect only certain cells. (1) Select entire sheet. (2) ...
EXCEL9/18/2007
  Q: in a cell string value (10pcs) and numeric value (0.69) in another cell and multiply together is it ...
  A: I will show you how to extract the numeric values. However, for me to guide you, I need to know the ...
VLOOKUP in Multiple Rows9/17/2007
  Q: I have an Excel worksheet with roughly 39,000 rows and 20 columns. Here is a quick (and truncated) ...
  A: Unfortunately that is how VLOOKUP will work. As I understand, you want ALL possible actions to be ...
EXCEL9/15/2007
  Q: in a cell string value (10pcs) and numeric value (0.69) in another cell and multiply together is it ...
  A: It is possble under some circumstances. Will it always be "pcs" or will keep changing? If keeps ...
Duplcation of data9/12/2007
  Q: I have workbook that contain few work sheets, one of these work sheets called TOTAL. I set up a ...
  A: Mohamad, You need to look at it like this- * What if data is changed after it copied to TOTAL? * So ...
deleting unwanted rows/entries9/11/2007
  Q: I will like to create a macro that will delete an entire row if a key word is not matched to on a ...
  A: Please provide following information to proceed- Will you be maintaining list of 18 WS's you are ...
creating dyanamic column9/11/2007
  Q: Drug Initial Dosage Format CONC Consumption NVP 200 tabs NVP200tabs NVP 200 caps NVP200caps ...
  A: My trials so far indicate this may not be possible through formulae. I have presumed that you will ...
Excel Formulas9/11/2007
  Q: I have a general question for you. I wanted to know if there is a way to actually MEMORIZE how to ...
  A: There is no general method available for these things. However, by practice, you will master the ...
Assign Macro To a Button9/5/2007
  Q: I added a button to my spreadsheet. Now, I would like to add a macro to it that (when button is ...
  A: Can you lpease tell me what is the final purpose of this MACRO? Is it to open some file? Try this ...
Macro to setup multiple tabs within single workbook9/4/2007
  Q: I would like to see VBA code (Excel 2003) that would create mutliple tabs based on this criteria: ...
  A: Chris, I need to have some more details. (1) Do you mean data on Sheet 2 will keep changing? (2) I ...
Looping9/3/2007
  Q: I am not able to write script on VB to create VB function. I want excel add one to two cells till ...
  A: I am going to make certain assumptions here- (1)You canmodify the VB code as required. (2) Cell A2 = ...
Looping8/31/2007
  Q: I am not able to write script on VB to create VB function. I want excel add one to two cells till ...
  A: This should be fairly simple... But I see one difficulty. Obviously, some combinations will bring ...
Compare two text values and add a value in third column8/29/2007
  Q: I really need your help in this mind twister! I have three columns A,B & C. Both A & B can have ...
  A: I suggest following method (to avoid MACRO) 1. Add a column C 2. Add a formula =A2&B2 in C2 and copy ...
Macro8/21/2007
  Q: I have a data of a instrument exported in form of Notepad txt file. So exported data files in the ...
  A: Recording alone will not help. You will need to write a macro. For instance, you may write for i = ...
Excel : Macro code to change column insertion point each week8/20/2007
  Q: I have a simple worksheet that has a list of product skus in column A. From Column B on, there is ...
  A: Logic would be - 1. Identify current week by system date. (For example you store first Sunday of the ...
COMPLICATED FORMULA FOR EXCEL8/19/2007
  Q: EXCEL: I’ve searched everywhere to figure this out and would greatly appreciate it if this could be ...
  A: Charles, I may not have understood the problem. But if you are referring to formula - ='MONTH TO ...
Rotate data in cells by row follow on8/18/2007
  Q: Sorry but need to ask a few more. How can I specify specific cell range. I tried to alter to ...
  A: Mark, you may use modified code- Private Sub tgs() myLast = Cells(56, 2) For i = 0 To 54 Cells(56 ...
Rotate data in cells by row8/17/2007
  Q: I am trying to create either VBA code via a command button that when pressed will rotate data in a ...
  A: I am giving the code that can be used below- Sub TGS() 'count the number of rows to be rotated ...
Cell Names as Cell Contents8/17/2007
  Q: I have a workbook with hundreds of Cells that already have defined Cell Names. I want to know if ...
  A: I am giving you two solutions, 1. Quick way of getting all Names alongwith cells is a single line ...
excel cell content comparison8/16/2007
  Q: The coding is to be done in VBSCRIPT OR VB . I have an excel work book and the work book contains 3 ...
  A: Part I Addition of sheets in the required order- POssible through MACRO. Sheets("Sheet1").Select ...
application of excel in work8/16/2007
  Q: Sir, Good day. iwant to ask how this macros and VBA is applicable in excel worksheet. i can notice ...
  A: WHEN TO USE MACROS- My experience show that MACROs may be used for one or more of the following ...
figurs in words7/31/2007
  Q: i am preparing the salary slip in excel i want the net amount payable to be written in the form of ...
  A: Mandar, There is no easy way for this. Option 1 Right a complex function yourself. Option 2 You ...
Excel Formula7/30/2007
  Q: I want to find out the differences in 2 spreadsheets that need to match 2 keys ..both spreadsheets ...
  A: My suggestion was, in D2 have formula = A2 & " " & B2 & " " & C2 Now, D2 will read - 123456 1234 50 ...
Excel Formula7/28/2007
  Q: I want to find out the differences in 2 spreadsheets that need to match 2 keys ..both spreadsheets ...
  A: I do not fully understand what you mean by DIFFERENCE? If it is just which entries are present in ...
Excel7/27/2007
  Q: Hmm.. I got 2 workbook called book1 and book2 Book1 is design to be form in the spreadsheet for ...
  A: Steve, What you need to do through your macro, is remove protection of Book 2, update data and again ...
Excel7/26/2007
  Q: Hmm.. I got 2 workbook called book1 and book2 Book1 is design to be form in the spreadsheet for ...
  A: YES. This is very much possible. However, what will happen is Book2 will open in background (not ...
assigning a value to a memory variable7/20/2007
  Q: I am try to assign the cell location to a variable. Dim myx myx = ActiveCell.FormulaR1C1 = ...
  A: If you want to pass Row Number to a variable you may use a Simple line- myX=Activecell.Row may be ...
EXCEL DATE-FORMAT HELL7/19/2007
  Q: I work in a Healthcare industry company where I receive spreadsheets in the email from the carriers, ...
  A: OK... Here are ways to tackle rest of the problems. (1) This is not exactly EXCEL setting. Go to ...
EXCEL DATE-FORMAT HELL7/19/2007
  Q: I work in a Healthcare industry company where I receive spreadsheets in the email from the carriers, ...
  A: Presuming you need to extract April 24, 2007 (in D1) from 06070424 (in C1) - (1)Select the column ...
Copy Relative Reference7/19/2007
  Q: I wonder if you can help me on this... I need to reference some data from a spreadsheet1 which is ...
  A: I am going to use your data to illustate. In Sheet1 A1 - Mary A2 - Peter A3 - James A4 - Tom Let us ...
entering data using a command button7/17/2007
  Q: I'm trying to write some code in a control command button that when clicked brings up a box that ...
  A: Use the following line in your command code with suitable replacements for TITLE (Enter Value for ...
isolating values7/15/2007
  Q: I am trying to find a formula for Excel that will isolate the final 20 values entered in a ...
  A: By using additional columns, you may be able to resolve part of the problem. (1) Column A holds your ...
Rounding value7/14/2007
  Q: i want to round the value. the cell in which my custom formula how can insert round function in ...
  A: =ROUND(B11*16/100,n) for rounding =ROUNDUP(B11*16/100,n)for rounding always up ...
Excel7/13/2007
  Q: Here goes: I have a complete list of names and associated IDs in one database (Database A) and a ...
  A: Imagine you have data in Columns A & B of Sheet1. NAME VALUE Joe    aa          Ted    bb          ...
Formula Question7/12/2007
  Q: I have a formula that counts visible cells when filtered. The formulas is =SUBTOTAL(2,EA8:EA493). ...
  A: To my knowledge, SUBTOTAL function will not support IF as additional argument. One suggestion could ...
i want to restrict to some value in cell of the excel.7/12/2007
  Q: i want to restrict to some value in cell of the excel. I need to check that in lost focus of the ...
  A: (1) Select the cells you want to add restriction to. (2) DATA -- VALIDATION (3) For your example, ...
command button to sort7/11/2007
  Q: How do I create a command button to sort a database by a particular column?
  A: You will need to create a MACRO and assign it to a command button. MACRO can be written or recorded. ...
using counif and if together7/11/2007
  Q: there is a column where i have entered experience of 30 employees..some have no experience and some ...
  A: My advise would be to introduce one column with a formula- ...
Excel: random question generator7/10/2007
  Q: Sakhalkar, I have a .doc file with roughly 500 questions. I would like an excel spreadsheet that ...
  A: Thomas, I have a Excel file with following specs. (1) It holds about 2000 questions (This number can ...
Change font colour in output of the IF command7/7/2007
  Q: I have a table of marks and using the IF command I transform them into grades. For example ...
  A: I think I may not have understood the question properly. I presume you need to blankout data ...
VLOOKUP with multiple lists7/6/2007
  Q: I am building a database for a non-profit education center. I am attempting to use the VLOOKUP ...
  A: I still feel - based on the information given by you, that VLOOKUP with IF should work. Please ...
copy a excel sheet6/29/2007
  Q: I want a button on a excel sheet(book1)that asks for a source excel workbook(book2).After giving ...
  A: Use following macro instead of earlier one- Sub NewMacro() myWorkbook = ActiveWorkbook.Name On ...
copy a excel sheet6/28/2007
  Q: I want a button on a excel sheet(book1)that asks for a source excel workbook(book2).After giving ...
  A: Shiv, Which means, you need to copy ALL data from a sheet to active sheet. Copying a sheet conveys ...
Function Range6/28/2007
  Q: Is there a way to enter an if statement where the logical_test looks for a range of numbers to ...
  A: Ben, I hope my understanding is correct. (1) Let us say A1 has a value between 1 to 40. (2) In A2 ...
copy a excel sheet6/28/2007
  Q: I want a button on a excel sheet(book1)that asks for a source excel workbook(book2).After giving ...
  A: Tools--Macro--Macros "NewMacro"--Create Paste following macro in the place. Create a button in ...
too many arguments6/27/2007
  Q: i have a spreadsheet with two types of data for each day of the month, data is in 2 columns each. I ...
  A: Bonnie, Your problem is not clear to me. I am answering with presumption that you are adding 31 ...
Change font colour in output of the IF command6/26/2007
  Q: I have a table of marks and using the IF command I transform them into grades. For example ...
  A: For Macro to appear in Pull Down menu, it needs to be created as Excel Add In. Else you can add a ...
excel vb6/26/2007
  Q: trying to write a macro to combine the content of cells c1:c30 and put result in b1 seperated by ...
  A: Try this code- Sub Try() Dim myString As String myString = Cells(1, 3).Text For i = 2 To 30 If ...
About Excel Formate6/26/2007
  Q: I AM WORKING IN U.A.E. I PREPARE A EXCEL SHEET LIKE H.R DEPARTMENT (VISA EXPIRY)I WANT TO DO THAT IF ...
  A: Salam Aalekum Muhammad... This is possible by conditional formatting. I am sending a seperate ...
Auto update of cell data with date6/25/2007
  Q: I am trying to do an automated update of the cell in comparison with last year record with the same ...
  A: I think the question is nlot clear to me. My presumption-- You want to see D1 = B1/C1 and you have ...
Compare cells and fill color6/20/2007
  Q: I'm a beginner in writing macro. I have a spreadsheet where in each row shows the production date ...
  A: I still feel you can do without a MACRO. Date = 15th Sep If it falls in week 39, it will ...
Compare cells and fill color6/20/2007
  Q: I'm a beginner in writing macro. I have a spreadsheet where in each row shows the production date ...
  A: With little change in the way you are making this sheet, you can do it without a MACRO. I presume ...
Drop-down Menu for Navigation6/19/2007
  Q: I would like to create a drop-down menu(not via Cell but an object which I can move arrount) which ...
  A: It can ceratinly be done by using MACROs. But then MACRO needs a trigger (e.g. clicking an object). ...
Auto update/averaging of cell with date6/19/2007
  Q: I would like to create a sheet that can auto update the cell and do auto calculation with the date I ...
  A: Prima facie, It is possible. Please send me a proposed layout, I will fill in the formulae and send ...
Macro to search a column and, upon a positive result, will cut corresponding row to new w/s6/15/2007
  Q: I trying to generate a macro which will search Column M of several worksheets and, if finding a "Y", ...
  A: Try the one below. You may need to modify as per the needs... Sub Remove() ...
Change font colour in output of the IF command6/14/2007
  Q: I have a table of marks and using the IF command I transform them into grades. For example ...
  A: You can do this by recording a macro and then assigning the macro to a command button or a text box. ...
Conditional formatting6/11/2007
  Q: I would like the background (pattern) color change according to the value in one cell. It is for ...
  A: Assumptions: Column A is for entering * Columns B,C,D are the ones to be colored if corresponding A ...
excel6/8/2007
  Q: i have a question regarding excel I have a spreadsheet that displays the project names is it ...
  A: My apologies for this disappointing answer. The task is a bit complex, mainly from understanding the ...
excel6/7/2007
  Q: i have a question regarding excel I have a spreadsheet that displays the project names is it ...
  A: If the list of projects is maintained in the same sheet, you may use Data-->Validation-->List. ...
Cell Merging6/6/2007
  Q: I was wondering if you could help me on this question in Excel I need to merge two columns data in ...
  A: Assumption: Cell A1 --- 1009999; Cell B1 --- 1395.5 Formula in Cell C1 "=CONCATENATE(A1,B1)" OR ...
pivot table6/5/2007
  Q: I have a question regarding pivot tables I have a pivot table however i understand that i cannot ...
  A: I think (if I have understood correctly) what you need to do is create a copy of original worksheet ...
macro help (expiration dates)6/4/2007
  Q: I was wondering if you would be able to answer a few excel questions I have concerning macros and ...
  A: To answer in short...YES. This is very much possible with a simple MACRO. The macro can be triggered ...
Combinations5/31/2007
  Q: "Hie Tushar i have data in two colums say A and B. where A are debits and c are credits. at the end ...
  A: Is there a way to know that two entries in Column A correspond to a entry in column B? ...
Conditional formatting question5/30/2007
  Q: I wanted to ask you a quick question related to conditional formatting. If I have the following row ...
  A: 1. Select cell A2 2. From the Format menu, select Conditional Formatting. 3. In Condition 1, select ...
Grafs5/30/2007
  Q: Ok so I have a question on grafs. How come when I plot my studies I get hundreds of dates on the ...
  A: If the dates in question are far apart, Excel will fill in uniformly the scale data on the axes. To ...
Excel Formula Question - Probably Simple5/29/2007
  Q: This may be an easily answered question and I apologize ahead of time for that. I have a worksheet ...
  A: Assumption: Sheet1 Columns- A(Code), B(Deptt), C(Description), D(Quantity), E(Rate), F(Total Amount ...
pivot table5/25/2007
  Q: I have a question regarding pivot tables I have a pivot table however i understand that i cannot ...
  A: I am not sure if I have understood the question properly. You cannot make changes to Pivot Table as ...
Combinations5/24/2007
  Q: "Hie Tushar i have data in two colums say A and B. where A are debits and c are credits. at the end ...
  A: Though the question is not fully clear, I am answering on the basis of a statement "a macro that can ...
Insert row3/19/2007
  Q: pls could you tell me how I insert a row so that a formula in that row is automatically copied into ...
  A: Try this- 1. Slect the row you need to copy 2. Right Click --> Copy 3. Select the row above which ...
Excel3/13/2007
  Q: I am trying to find out how to make calculations under certain conditions. For example, lets say ...
  A: Try to add an extra column with a formula- =WEEKDAY(A2,2)<6 You will notice that all weekdays are ...
Automated range selection in lookup table2/26/2007
  Q: I have a table of cash forecasts for various product lines. The left most column is the date. ...
  A: Though it requires a additional column, I suggest following. ASSUMPTION: Range A2:A29 contains dates ...
Macro for inserting spaces in a telephone number string1/10/2007
  Q: The telephone and fax number fields have numbers with no spaces. I have tried to record a macro ...
  A: .. I can help you with the macro but my question is why not do it by a formula. Assuming a number ...
How to sum1/9/2007
  Q: In that sheet I want the sum of the columns (column A, Column B, Column C, Column D) respective sum ...
  A: Fear Jothi, Why are you using MACRO? This can be done simply by formulae. Does the need arise ...
Lookup and Match two lots of data9/11/2006
  Q: I have extracted from a database a list of Software Items in Column A and what Hardware Item they ...
  A: 1. I suggest you create a new column at both places by concatenating two columns to get ...

All Questions in This Category

About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

All Answers

Answers by Expert:


Ask Experts

Volunteer


Tushar Sakhalkar

Top Expert on this page

Expertise

Formulae in Excel. VB Macros.. Though not really expert in this.

Experience

About 8 years

Education/Credentials
B.Tech.

©2009 About.com, a part of The New York Times Company. All rights reserved.