Excel download into a sheet-2by taking formula from another sheet.-1
i hv an internal table itab.which contain 3 fields a,b,c.
a,b are input parameters (int).c = ab.Now i hv to download the values of a,b,c into a excel sheet-2 by <b>taking the formula</b>(c = ab) <b>from another sheet-1</b>.and everytime the new vales of a,b,c should be appended ito the sheet2.
can anybody tell me which fm i shoud use?? or some sample code will be grrr88.
points will be rewarded.
See if these blogs can help you ...
/people/rich.heilman2/blog/2005/09/12/manipulate-excel-with-ole-abap
/people/sap.user72/blog/2006/02/07/downloading-data-into-excel-with-format-options
Not sure if you can do the calculations.
Regards,
Ravi
Similar Messages
-
Unable to import cell data from another sheet in Numbers
Hi. I have a column of cells that I need to import the values of (copy) from one SHEET to another (not a table within same sheet etc).
Recently moved to Numbers from buggy GoogleDocs/Drive. Within that i could =importrange and reference the cells in the other sheets tables.
Failing this, is it possible to allow my customers to view one table within my worksheet, i.e. only have one table viewable and the others not etc?
Thanks in advance. SiHi Si,
There are many ways of doing this in Numbers. If you will be sorting your column the function INDEX() could work for you. If you will not be sorting try this:
Click where you want your first cell to move to. Type "="
Navigate to your other sheet and click in the first cell you want to move.
Hit return.
your value should show in your new sheet.
Fill your newly made formula down the rest of the column.
Welcome to Numbers!
quinn -
Insert data from another sheet
I have a problem;
I want to be able to create a drop down list on one sheet that references a table on another sheet. The data looks like this;
UNIT
Cost per day
unit a
10
unit b
20
unit c
30
I am hoping to create a Drop-down box on another sheet that lets me select a 'unit', and then places the Cost per day in the cell next to it.
Is this possible within numbers without a huge IF'cell'= formula?
My aim is to be able to use an iPad running Numbers to create instant quotes when onsite with clients, by referencing a data sheet but presenting it nicely.Yes, VLOOKUP should work nicely for that. Set the formula up on one sheet and complete it by clicking the ranges in the lookup table on the other sheet.
SG -
Data Writing Speed for Excel Sheet while taking data from PCI DAQ card
Dear All,
I am taking the data form the card EX-92026 pci card and writing those datas into the Excel sheet, now i want the data at the speed of max of 10 miliseconds but while writing the data into excel sheet, it shows the diff of 15 ms betn 2 readings, and the card specs says it takes the time of 500 microsecs to give the data, so is there any effect of timing, while writing data into excel sheet? is labview take more time, i am using the Open file, write file and close file method and write to spreadsheet file method, but none of them is giving me the effective timing that i wamt, so can u tell me how can i reduce it??????
Thanks,
NishantHi Nishant:
I think I don't understand you very well. If you are using OpenFile, CloseFile and WriteToSpreadsheet VIs, you are not dealing with excel files, but text files.
Writing to file is costly in time. You can:
Open the file just once and
during de process use just file writing VIs as 'write to spreadsheet'... or a more simple one 'write file'
Close the file once at the end.
If you need the process to be faster, you can save all the data at 10ms rate in an array and write to file at the end.
Or write to file every second what you got the last second.
Hope it helps
Aitortxo.
Aitortxo. -
I am trying to copy over the results of my product formula and copy it over to a separate spreadsheet.
Every single time I try to copy the results over, the formula seems to tag along with it!
EXAMPLE: I took 17.99 and multiplied it by 3.5 to get 62.97. All I want is the 62.97 so that I can put it on a separate work sheet... every time I try doing that... it copies over the formula!
So frustrating. Is there anyway to get this done? Or do I have to multiply all 2000+ equations manually and type it in myself?Hi gn,
Glad to help. Thanks for the green tick .
Happy Numbering!
Regards,
Ian. -
Reference cell from another sheet
Hello,
I've created income and expenses spreadsheets, within the same file. I would like to create a cell with a formula for INCOME less EXPENSES. I've read through many forums and have tried the following formulas to no avail:
On the income sheet (B65 represents our total income, FYI) I've typed:
=B65-'MY BUSINESS 2014 EXPENSES'::'Table 1'::B242
or
=B65-'Sheet 2'::'Table 1'::B242
or
=B65-('MY BUSINESS 2014 EXPENSES'::'Table 1'::B242)
or
=B65-('Sheet 2'::'Table 1'::B242)
or
=B65-'MY BUSINESS 2014 EXPENSES - Table 1'::B242
Nothing is working. I keep getting the same #REF! error message. What am I doing wrong here?
Thanks in advance!I had this same issue, I finally figured you you need a space before and after each ::
'MY BUSINESS 2014 EXPENSES - Table 1' :: B242 -
I want a VLOOKUP function that all of my sheets will refer to. It needs to be on the first sheet titled "Total Overview" and the table is "Table 4". I have set it up, but when I go to a different sheet and set it up, it gives an F for a 100%. Is there a syntax error?
Here is the formula for cell H12:
=VLOOKUP(H11, Total Overview :: Table 4, 2, 1)
My Table looks like this:
90 A
80 B
70 C
60 D
0 F
BTW I have a screenshot but I don't know how to attach it to my post.Hi Monica,
I see two errors.
On the table "Write", the following change is needed in H12:
H12: current formula: =VLOOKUP(H11,Total Overview t:: Table 4 :: $A:$B,2,1)
H12: corrected formula: =VLOOKUP(H11,Total Overview:: Table 4 :: $A:$B,2,1)
The second error is a misunderstanding of the meaning of "100%". "100% of a pie" means "one whole pie." In money terms, 100% of 1.00 CHF is 100 centisimi (or centimes, depending on the canton), not 100 CHF.
(Edit: or substitute $1.00 and 100¢ now that I've read your location as well as your username.)
The numbers on your lookup table must have the same meaning as the numbers calculated in column H of the various tables. They don't.
For the values listed in the lookup table and the value in H11 on this table, F is the correct grade.
The score calculated by the formula in H2, =(AVERAGE(B2:G2))/5 is the average of
5, 5, 5, 5, 5, and 5, divided by 5.
The average of that set of numbers is 5. Divided by 5, the result is 1, which is well below 60.
Correction needed:
Revise the values on the lookup table to
0.9 A
0,8 B
0.7 C
0.6 D
0 F
or
90% A
80% B
0 F
OR
Revise the formula in H2 to
=(AVERAGE(B2:G2))*100/5
and format all cells now showing percents as Number rather than as Percentage.
Regards,
Barry
Message was edited by: Barry -
Reference data from another sheet
Hey everybody, I am sorry to post here if it has been previously posted. I am looking to use a conditional format a cell with a value less than 84 to be changed to red. I am using the iPad.
I also need to reference data from another worksheet.
Thanks,
GregI had this same issue, I finally figured you you need a space before and after each ::
'MY BUSINESS 2014 EXPENSES - Table 1' :: B242 -
Taking screenshot from another window
I am writing an application in which I have to take a screenshot from another application's window. Is this possible in Java?
hi friend,
We can capture the Entire screen using java's Robot class.
Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
Robot r=new Robot();
BufferedImage bi=r.createScreenCapture(new Rectangle(0,0,(int)screenDim.getWidth(), (int)screenDim.getHeight()));
File f=new File("screen.png");
ImageIO.write(bi, "png",f); -
Insert into a table with unique columns from another table.
There are two tables,
STG_DATA
ORDER_NO DIR_CUST_IND
1002 DNA
1005 GEN
1005
1008 NULL
1001 NULL
1001 NULL
1006 NULL
1000 ZZZ
1001 ZZZ
FACT_DATA
ORDER_NO DIR_CUST_IND
1005 NULL
1006 NULL
1008 NULL
I need to insert only unique [ORDER_NO] from STG_DATA to FACT_DATA with corresponding [DIR_CUST_IND]. Though STG_DATA has multiple rows with same ORDER_NO, I need to insert only one of that it can be any record.
SarvanCREATE TABLE #Level(ORDER_NO INT, DIR_CUST_IND CHAR(3))
INSERT #Level
SELECT 1002,'DNA' UNION
SELECT 1005,'GEN' UNION
SELECT 1005,NULL UNION
SELECT 1008,NULL UNION
SELECT 1001,NULL UNION
SELECT 1001,NULL UNION
SELECT 1006,NULL UNION
SELECT 1000,'ZZZ' UNION
SELECT 1001,'ZZZ'
SELECT ORDER_NO,DIR_CUST_IND
FROM( SELECT ROW_NUMBER()OVER(PARTITION BY ORDER_NO ORDER BY ORDER_NO) RowNum,*
FROM #Level)A
WHERE RowNum=1
I hope this would give you enough idea. All you have to do is just write insert statement.
Next time please post DDL & DML.
Chaos isn’t a pit. Chaos is a ladder. Many who try to climb it fail and never get to try again. The fall breaks them. And some are given a chance to climb, but they refuse. They cling to the realm, or the gods, or love. Illusions. Only the ladder is real.
The climb is all there is. -
Want to pull data from multiple sheets by lookup (I think...)
Hello All,
I have been tasked with determining benefits which some employees are entitled to receive, however, the eligibility data comes from different sheets. I'd like to request help in automate data collection from several sheets within the spreadsheet to create a final top level data sheet. Here are the steps I'm trying to automate in some fashion:
Each employee has an employee number. On the top sheet, each employee is listed by number. I need to search each employee's number on a lower sheet which lists their number and 2011 earnings in a row. Rinse and repeat for 2012 earnings, which are on a third sheet in a row. Rinse and repeat for address data on yet another sheet in a row.
I am no spreadhseet wizard, hardly even a novice. Is there a tutorial or explanation which will help me to automate searching for a cell with the employee number and retrieving data from other cells within that row?
If this were a couple of hundred employees, I would probably slog it out and cut and paste until my fingers bleed. But this time it is 4000 people, so I really could use a hand trying to automate this clunker a bit. Otherwise, I will never see daylight again, being chained to my desk in a windowless room (and missing the deadline, too.)
Thanks in advance for your expertise and assistance-
AirIt was actually simple, though finding the information was difficult because I lacked the correct terminology.
Essentially, the [LOOKUP] function allows you to select a field and one sheet, search for it on another sheet, and when it finds a match, you can select which cell within the row from which to pull data. So, in my case, I had employee numbers on each sheet. Select the employee number, then head to the sheet you're searching and select a column to look within, then select the data you want when there is a match. Easy peasy!
There are tons of free videos on the subject, so I won't bore everyone with my exact method and cell references- just search for "lookup function in numbers (or excel)" and you'll receive far better instruction than I can provide.
Best to all,
Air -
Issue using ADSI in powershell to load users from another domain into a group
I am trying to load users into a domain local security group from another domain using ADSI and powershell. For users who have an existing foreign security principal I can load that without issue, but the users who do not have a foreign security principal
I am unable to load.
These work fine, assuming the group domain is fabrikam:
$Group.psbase.invoke("Add",[ADSI]"LDAP://CN=$external_user_sid_who_has_a_FPN,CN=ForeignSecurityPrincipals,DC=fabrikam,DC=com")
$Group.psbase.invoke("Add",[ADSI]"LDAP://$userDN,DC=fabrikam,DC=com")
These does not:
$Group.psbase.invoke("Add",[ADSI]"LDAP://CN=$externaluser_sid_who_does_not_have_a_FPN,CN=ForeignSecurityPrincipals,DC=fabrikam,DC=com")
$Group.psbase.invoke("Add",[ADSI]"LDAP://<SID=$external_user_sid_who_does_not_have_a_FPN>")
$Group.psbase.invoke("Add",[ADSI]"LDAP://<SID=$external_user_hex_sid_who_does_not_have_a_FPN>")
Any help would be greatly appreciated.
Thank youThank you for your reply,
I started with that thread and it ultimately recommends using the [ADSI]"LDAP://<SID=$hexsid>, this bind is not working for me. The page it points to for conversion of sid to hexsid is in VBS, but I have used the below powershell to duplicate its function.
$sid = "S-1-5-21-2127521184-1604012920-1887927527-72713"
$parts = $sid.Remove(0,6).Split("-")
foreach ($part in $parts)
$hex = ([Convert]::ToString($part, 16)).ToUpper()
While ($hex.length -lt 8)
$hex = "0" + $hex
for ($i=1; $i -lt 5; $i++)
$reverseEndian = $reverseEndian + $hex.substring($hex.length -2, 2)
$hex = $hex.Remove($hex.length -2, 2)
$hexSid = "0105000000000005" + $reverseEndian
For example SID S-1-5-21-2127521184-1604012920-1887927527-72713 needs
to be turned into raw hex sid 010500000000000515000000A065CF7E784B9B5FE77C8770091C0100 according to that article and
then put in the ADSI bind like this: [ADSI ]"LDAP://<SID=010500000000000515000000A065CF7E784B9B5FE77C8770091C0100>".
When I put that bind in (with an actual sid and not an example sid) I get the following error:
format-default : The following exception occurred while retrieving member "PSComputerName": "There is no such object on
the server.
+ CategoryInfo : NotSpecified: (:) [format-default], ExtendedTypeSystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand
For users who are on another domain but already have a foreign principal name created, I can add them easily enough by converting their sid to the appropriate foreign principal name format. I haven't yet had any success adding someone who doesn't have a
foreign principal name though, even after trying the solution referenced in the article.
Thank you in advance for any help. -
How to Get the excel sheet formula from the server side into the j2me app?
How to Get the excel sheet formula from the server side into the j2me application?
Here the excel sheet is in server side.i want to do get the excel sheet values (only some part of the excel sheet based on some conditions) from server side into j2me.In j2me I want to done some client side validation based on the formula of excel sheet.Then i resend the new updated data to the server.
But here deosn't know any mehtod to get the excel sheet formula from server side.So kindly help me to get the excel sheet formula from the server.
So how to get the excel sheet formula frome the server side into j2me Application...
Plz guide me to solve this issue...
thanks & regards, Sivakumar.JYou should not post a thread more than once. You've crossposted this question to another forum. I have deleted that one.
-
How to download data from different sheet of excel file.
Hi Friends,
I have a Excel file with different sheet like sheet 1, sheet 2 and so on,
and i have to download each sheet data in to different internal tables.
Is there any FM or something else.
Pl. help
Thanks
Sunil.Hi,
You can create the function module for this.
The code sample is as below:
*Code Sample *
FUNCTION Z_UPLOADING_FROM_2SHEETS.
""Local interface:
*" IMPORTING
*" VALUE(FILE_NAME) LIKE RLGRAP-FILENAME
*" VALUE(START_ROW_SHEET1) TYPE I
*" VALUE(START_COLUMN_SHEET1) TYPE I
*" VALUE(START_ROW_SHEET2) TYPE I
*" VALUE(START_COLUMN_SHEET2) TYPE I
*" VALUE(END_ROW_SHEET1) TYPE I
*" VALUE(END_COLUMN_SHEET1) TYPE I
*" VALUE(END_ROW_SHEET2) TYPE I
*" VALUE(END_COLUMN_SHEET2) TYPE I
*" TABLES
*" IT_DATA1 STRUCTURE ALSMEX_TABLINE
*" IT_DATA2 STRUCTURE ALSMEX_TABLINE
*" EXCEPTIONS
*" INCONSISTENT_PARAMETERS
*" UPLOAD_OLE
DATA DECLARATION
DATA: excel_tab TYPE ty_t_sender,
excel_tab1 TYPE ty_t_sender.
DATA: ld_separator TYPE c.
DATA: application TYPE ole2_object,
workbook TYPE ole2_object,
SHEET TYPE OLE2_OBJECT,
range TYPE ole2_object,
worksheet TYPE ole2_object.
DATA: h_cell TYPE ole2_object,
h_cell1 TYPE ole2_object.
DATA: ld_rc TYPE i.
MESSAGE DEFINATION
DEFINE m_message.
case sy-subrc.
when 0.
when 1.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
when others. raise upload_ole.
endcase.
END-OF-DEFINITION.
PARAMETER CHECK
IF START_ROW_SHEET1 > END_ROW_SHEET1.
RAISE inconsistent_parameters.
ENDIF.
IF START_COLUMN_SHEET1 > END_COLUMN_SHEET1.
RAISE inconsistent_parameters.
ENDIF.
IF START_ROW_SHEET2 > END_ROW_SHEET2.
RAISE inconsistent_parameters.
ENDIF.
IF START_COLUMN_SHEET2 > END_COLUMN_SHEET2.
RAISE inconsistent_parameters.
ENDIF.
CLASS cl_abap_char_utilities DEFINITION LOAD.
ld_separator = cl_abap_char_utilities=>horizontal_tab.
OPENING EXCEL FILE
IF application-header = space OR application-handle = -1.
CREATE OBJECT application 'Excel.Application'.
m_message.
ENDIF.
CALL METHOD OF APPLICATION 'Workbooks' = WORKBOOK.
m_message.
CALL METHOD OF application 'Workbooks' = workbook.
m_message.
CALL METHOD OF workbook 'Open' EXPORTING #1 = FILE_NAME.
m_message.
CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
m_message.
CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
m_message.
CALL METHOD OF SHEET 'Activate'.
m_message.
GET PROPERTY OF application 'ACTIVESHEET' = sheet.
m_message.
MARKING OF WHOLE SPREADSHEET
CALL METHOD OF sheet 'Cells' = h_cell
EXPORTING #1 = START_ROW_SHEET1 #2 = START_COLUMN_SHEET1.
m_message.
CALL METHOD OF sheet 'Cells' = h_cell1
EXPORTING #1 = END_ROW_SHEET1 #2 = END_COLUMN_SHEET1.
m_message.
CALL METHOD OF sheet 'RANGE' = range
EXPORTING #1 = h_cell #2 = h_cell1.
m_message.
CALL METHOD OF range 'SELECT'.
m_message.
Copy marked area (SHEET1) into Clippboard
CALL METHOD OF range 'COPY'.
m_message.
Read clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = excel_tab
EXCEPTIONS
cntl_error = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
PERFORM separated_to_intern_convert TABLES excel_tab IT_DATA1
USING ld_separator.
Clear the clipboard
REFRESH excel_tab.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = excel_tab
CHANGING
rc = ld_rc
EXCEPTIONS
cntl_error = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
Working in Second Excel Work Sheet
CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 2.
m_message.
CALL METHOD OF SHEET 'Activate'.
m_message.
GET PROPERTY OF application 'ACTIVESHEET' = sheet.
m_message.
Mark Sheet2
CALL METHOD OF sheet 'Cells' = h_cell
EXPORTING #1 = START_ROW_SHEET2 #2 = START_COLUMN_SHEET2.
m_message.
CALL METHOD OF sheet 'Cells' = h_cell1
EXPORTING #1 = END_ROW_SHEET2 #2 = END_COLUMN_SHEET2.
m_message.
CALL METHOD OF sheet 'RANGE' = range
EXPORTING #1 = h_cell #2 = h_cell1.
m_message.
CALL METHOD OF range 'SELECT'.
m_message.
Copy Marked Area (Sheet2) into Clippboard
CALL METHOD OF range 'COPY'.
m_message.
Read Clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = excel_tab1
EXCEPTIONS
cntl_error = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
PERFORM separated_to_intern_convert TABLES excel_tab1 IT_DATA2
USING ld_separator.
Clear Clipboard
REFRESH excel_tab.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = excel_tab1
CHANGING
rc = ld_rc
EXCEPTIONS
cntl_error = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
Leaving Application .
CALL METHOD OF application 'QUIT'.
m_message.
FREE OBJECT application.
m_message.
ENDFUNCTION. -
How to upload the data from two sheets in one excel into SAP
Hi experts,
My requirement is to upload the data from two sheets in an excel into an internal table.How can this be achieved.Is some OLE application has to be used?
Thanks
AbhishekHi
see this program will upload excel file to application.
*& Report ZSD_EXCEL2
REPORT ZSD_EXCEL2.
types: begin of ttab ,
fld1(30) type c,
fld2(30) type c,
fld3(30) type c,
fld4(30) type c,
fld5(30) type c,
end of ttab.
data: itab type table of ttab with header line.
selection-screen skip 1.
parameters: p_file type localfile default
'C:\test.xls'.
selection-screen skip 1.
at selection-screen on value-request for p_file.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = 'X'
changing
file_name = p_file.
start-of-selection.
clear itab. refresh itab.
perform upload_data.
loop at itab.
write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.
endloop.
* Upload_Data
form upload_data.
data: file type rlgrap-filename.
data: xcel type table of alsmex_tabline with header line.
file = p_file.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '200'
i_end_row = '5000'
tables
intern = xcel
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
loop at xcel.
case xcel-col.
when '0001'.
itab-fld1 = xcel-value.
when '0002'.
itab-fld2 = xcel-value.
when '0003'.
itab-fld3 = xcel-value.
when '0004'.
itab-fld4 = xcel-value.
when '0005'.
itab-fld5 = xcel-value.
endcase.
at end of row.
append itab.
clear itab.
endat.
endloop.
endform.
Maybe you are looking for
-
Fatal error while converting doc to pdf
While Adobe Acrobat 7.09 converted a rather simple (albeit long) Word 2003 document, I received the following fatal error message during the "Processing for Tag Information" stage of Acrobat PDFMaker. MS Visual C++ Debug Library Program: WINWORD.EXE
-
Unity 7 - remote the /ciscopca in the url
Is it cause any problem if we remove the /ciscopca in IIS for the url of unity so people will user the http://unityIP instead of http://unityIP/ciscopca
-
How can I get Contacts to recognize iPhones?
Hello, in Contacts I have thousands phone numbers listed in typical fashion as 'home', 'work', or 'mobile'. How can I get Contacts to tell me which 'mobile' phone numbers are associated with iPhones? Thanks!
-
Hello, I recently intalled Arch Linux and as you can see i was trying to install the ethernet drivers to get all working to install the Eee PC kernel via pacman, but when i try to install the kernel i got some problems: # pacman -Sy kernel-eee :: Syn
-
Add an image above camera preview on an ANE for iOS
I'm building an ANE for iOS where I show the camera preview. It works ok. However, I want to show an image above the camera preview (because I'm doing a barcode scanner) and I'm unable to see the image when I export release build my app in Flash Buil