Reference last active cell of a column?
I have a Numbers file with two tables, 'AXA' and 'Year To Date'.
The 'AXA' table has a column [c] that contains daily brokerage amounts.
In the 'Year To Date' table I am trying to reference the latest brokerage amount so that I can
analyze the latest data from the first of the year.
I looked around on the web to find a way to reference the last non-blank cell of a column.
I found and tried several suggested methods but I am unsuccessful so far.
I had great hope for the following formula but I keep getting a "The formula contains a syntax error"
=INDEX( FILTER( AXA::C3 : AXA::C2048 ; ISNUMBER( AXA::C3 : AXA::C2048 ) ) ; ROWS( FILTER( AXA::C3 : AXA::C2048 ; ISNUMBER( AXS::C3 : AXA::C2048 ) ) ) )
Can someone tell me what the syntax error is and / or a better way to accomplish my task?
Regards,
Jim Crowell...
Questions:
1) Is there a way to set a column range that say "From here to the end of the column"?
Somehow the reply got posted before I completed the set of questions, sorry...
1) Is there a way to set a column range that say "From here to the end of the column"?
For example, my table has 2 header rows followed by 4 rows of data with columns A, B, C.
The rows shall grow daily so I am looking for a way to count the rows from C3:X where 'X' is the current last row number.
I tried "C3:"and "C3:C" syntax to no avail.
2) My main table is named AXA and is as described above only with additional columns.
I have another table named YTD where I need to do some Year to Date analysis on the
AXA table.
I am trying to reference [from YTD] the last value in the AXA 'C' column.
I think the following formula should work but I get "The formula contains syntax error".
=AXA::"C"&ROWS(AXA::C)
Note that "=AXA::C6" works fine...
I even tried computing the dynamic cell address and doing an INDIRECT function.
That code worked fine within the YTD table but also failed when I referenced the AXA
table from the YTD table!
This should be an easy thing to do but somehow I am misreading something.
Thanks for you help,
Jim...
Similar Messages
-
Two common commands missing: go to last filled cell and find within column
Hello,
There seem to be two very common commands (and, by extension, shortcuts) that are missing from Numbers. First, in Excel, you can use command+arrow to go to the last filled cell (even if it is a formula without a result). More importantly, combining this command with the shift key allows you to select an entire column, etc. instantly. The command is also smart enough to exclude headers and formulas in the last row only, initially. You can easily add them by using only shift+arrow after the selection has been made.
Next, you apparently cannot search within a particular selection only, such as an entire column or row (or just a custom selected area). This is obviously very useful.
Any suggestions on how to accomplish these tasks is welcome but a search on these forums and a detailed look at the user manual came up with nothing.
Thanks,
Jonnajimdoc wrote:
Different program, different paradigm.
In the tables in Numbers, there is generally no need to have unused columns at the right or unused rows at the bottom. While I agree it would be nice to have a simple key-command that does these things, there is less of a need for them in a program where the last cell filled is usually the last cell there is.
And selecting an entire row, or column, can be accomplished simply by clicking on the "A" (or "B" or "C"...) or "1" (or "2" or "3"...). This does select the headers and footers as well, however.
With respect, the advent of apple spreadsheet software (however much I respect the company) does not represent a new paradigm–it is just "new" and therefore may be missing some crucial features. You do not provide any helpful suggestions, unfortunately, and the problem remains. What if I do not want to select an entire cell but only from a point in the middle of the column to the end? There is no command nor key command for this.
You also say nothing about the search issue, which is clearly a problem.
Anyway, thanks jaxjason, I will send in some feedback. -
Formula to calculate the last active value in a row?
When using a simpe table, what formula will display the last active value in the row? Some of the cells are blank. I want a column to show the most recent value, which in this case will be the rightmost, non-blank cell.
B2 through J2 are your data
B3 =IF(B2="","",COLUMN())
Fill that to the rest of row 3
A2 =INDEX(B2:J2,MATCH(MAX(B3:J3),B3:J3,1))
If there are no values in the row, the answer will be an error triangle. You can put the IFERROR function around the formula and give it an answer when there is an error. -
Fill down from D1 to active cell in excel ??
Hi all. I am trying to write a script to take the values from column A and subtract the value of A$1 from the rest of column A. To do this manually I set D1 = A1-A$1 and then fill down in column D to the last used row in column A. Then copy-special paste values from column D to column A. Below is what I have written so far, but the "select (ranges "D1" thru active cell)" selects cells D1 and the active cell ($D$5) not from cell D1 down to the active cell.
Any ideas for a newbie?
tell application "Microsoft Excel"
set formula of cell "D1" to "=A1-A$1"
select (get end range "A:A" direction toward the bottom)
set theEnd to (get first row index of active cell)
select cell 4 of row theEnd
select (ranges "D1" thru active cell)
fill down (ranges "D1" thru active cell)
end tellI figured out a way to do what I was after, but I would think there is a more direct way of doing it.
If anyone has a way to slim down or clean-up this script, please let me know.
Here is the script I have now.
tell application "Microsoft Excel"
set formula of cell "D1" to "=A1-A$1"
select (get end range "A:A" direction toward the bottom)
set theEnd to (get first row index of active cell)
select column 4 of row theEnd
set lastRow to "D" & theEnd as string
set range1 to "D1:" & lastRow
fill down range (range1)
end tell -
Active Cell or Active Row in Matrix
alguem sabe como descubro qual a linha e/ou célula ativa de um Grid (Matrix) ?
Ativa não é o mesmo que Selecionada, portanto o método GetNextSelectedRow não serve.
Obrigado.Hi Wagner,
You can use pVal.Row which returns you the active row number (Row UID).
You can use
oMatrix.Columns.Item(Coumn UID).Cells.Item(Row UID).Click(SAPbouiCOM.BoCellClickType.ct_Regular,0);
to get the reference of the cell.
Regards,
Prashant -
How to set different renderers to different cells in same column of JTable?
Hello Friends,
I need your help again...
Does any body knows, how to set different renderer's for different cells of same column in JTable..??
For ex.
Col1 Col2 Col3 Col4
A A A A
A A A B
A A A C
A A A D
Where A B C D would be different Renderers. I want set exactly same ,,, ie. one column with different renderer at different cell positions..
Right now i m setting renderer using statement bellow :
table.getColumnModel().getColumn(int).setCellRenderer(rederer_Instance);But with this, effect in the last renderer is applicable whole column....
Can any body help me out ?????????
please refer this thread for similar kind of discussion...
http://forums.sun.com/thread.jspa?forumID=57&threadID=571445Thanks
SuyogPlease refer to the first reply of [this thread|http://forums.sun.com/thread.jspa?forumID=57&threadID=571445] for the answer. If you have a specific problem implementing it, post you code with a specific question.
-
Hi,
I am new to ABAP-HR.
I am using logical database PNP to get payroll. But i want to get only the last active payroll for a personnel number. How to achieve this ? Is there any Macro for this ?
Please guide on this.
Thanks & Regards
AnanyaHi
See the sample Payroll report to fetch the Overtime.
We can control the Last active payroll using the RGDIR table fields
see the sample code
report zovertime
line-size 252
line-count 60(1)
no standard page heading
message-id zndc.
Database Tables & Infotypes
tables: pcl1, " HR Cluster1
pcl2, " HR Cluster1
pa0003, " Master data - Payroll Status
cskt, " Cost Center Texts
t528t, " Positions Texts
t513s, " Job Titles
pernr, " Logical PNP
t001p, " Personnel Subarea
t500p, " Personnel Area
t501, " Employee Group
t503k, " Employee Subgroup
csks. " Cost Center
infotypes:0000,0001.
*include rpclst00.
include rpc2rx00.
include rpc2rxx0.
include rpc2cd00.
*include rpc2ps00.
*include rpc2pt00.
*include rpcfvp00.
*include rpcfdc10.
*include rpcfdc00.
include rpppxd00.
include rpppxd10.
Declaration of Internal Tables
Internal Table for Output Data
data: begin of rep_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
pernr like pa0001-pernr, " Personal Number
ename like pa0001-ename, " Employee Name
ctext like cskt-ltext, " Cost Center Text
ptext like t528t-plstx, " Position Text
ot1 type p decimals 2, " Jan OT Amount
ot2 type p decimals 2, " Feb OT Amount
ot3 type p decimals 2, " Mar OT Amount
ot4 type p decimals 2, " Apr OT Amount
ot5 type p decimals 2, " May OT Amount
ot6 type p decimals 2, " Jun OT Amount
ot7 type p decimals 2, " Jul OT Amount
ot8 type p decimals 2, " Aug OT Amount
ot9 type p decimals 2, " Sep OT Amount
ot10 type p decimals 2, " Oct OT Amount
ot11 type p decimals 2, " Nov OT Amount
ot12 type p decimals 2, " Dec OT Amount
ott type p decimals 2, " Total OT Amount
end of rep_tab.
Declaration of Variables
data: v_mon(2) type n, " Month
v_no type i, " Data Lines
v_year(4) type c, " Year
v_date like sy-datum, " Date
v_date1 like sy-datum, " Date
v_seqnr like pc261-seqnr. " Sequence No.
Declaration of Constants
data: c_type like hrp1001-otype value 'S', " Object Type
c_kokrs like cskt-kokrs value '1000', " Controlling Area
c_date1 like sy-datum value '18000101', " Date
c_date2 like sy-datum value '99991231', " Date
c_x type c value 'X', " Sign
c_mon(2) type c value '01', " Month
c_val1(2) type c value '31', " Date
c_val2(2) type c value '12', " Month Type
c_val like p0041-dar01 value '01', " Date Type
c_lgart1 like p0008-lga01 value '0722', " Wage Type
c_lgart2 like p0008-lga01 value '0723', " Wage Type
c_1(2) type n value '01', " Month1
c_2(2) type n value '02', " Month2
c_3(2) type n value '03', " Month3
c_4(2) type n value '04', " Month4
c_5(2) type n value '05', " Month5
c_6(2) type n value '06', " Month6
c_7(2) type n value '07', " Month7
c_8(2) type n value '08', " Month8
c_9(2) type n value '09', " Month9
c_10(2) type n value '10', " Month10
c_11(2) type n value '11', " Month11
c_12(2) type n value '12'. " Month12
Selection-screen
parameters:
p_year like pc2b0-pabrj obligatory. " Payroll Year
At selection-screen
at selection-screen.
Validate the Selection Screen fields
perform validate_screen.
Start-of-Selection
start-of-selection.
Selection of Period
perform get_period.
Get PERNR from LDB
get pernr.
Get the Master data from infotype 0001
perform get_master_data.
Top-of-page
top-of-page.
Write the Report and Column Headings
perform top_of_page.
End-of-Page
end-of-page.
write /1(252) sy-uline.
End-of-Selection
end-of-selection.
Display the Output Report.
perform display_report.
Form-Routines
*& Form validate_screen
Validation of selection Screen fields
form validate_screen.
Validation of Cost Center
clear csks.
if not pnpkostl[] is initial.
select single kostl
into csks-kostl
from csks
where kostl in pnpkostl.
if sy-subrc <> 0.
message e999 with 'Invalid Cost Center'(003).
endif.
endif.
Validation of Personnel Number
clear pa0003.
if not pnppernr[] is initial.
select pernr
from pa0003 up to 1 rows
into pa0003-pernr
where pernr in pnppernr.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personal Number Entered'(002).
endif.
endif.
Validation of Personnel Area
clear t500p.
if not pnpwerks[] is initial.
select persa
from t500p up to 1 rows
into t500p-persa
where persa in pnpwerks.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personnel Area Entered'(001).
endif.
endif.
Validation of Personnel Sub Area
clear t001p.
if not pnpbtrtl[] is initial.
select btrtl
from t001p up to 1 rows
into t001p-btrtl
where btrtl in pnpbtrtl.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personnel Sub Area Entered'(037).
endif.
endif.
Validation of Employee Group
clear t501.
if not pnppersg[] is initial.
select persg
from t501 up to 1 rows
into t501-persg
where persg in pnppersg.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Employee Group Entered'(038).
endif.
endif.
Validation of Employee Sub Group
clear t503k.
if not pnppersk[] is initial.
select persk
from t503k up to 1 rows
into t503k-persk
where persk in pnppersk.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Employee Sub Group Entered'(039).
endif.
endif.
endform. "validate_screen
*& Form get_period
Get the Correct Period based on Selection screen selection
form get_period.
clear: v_year,v_mon, v_date, v_date1.
v_year = sy-datum+0(4).
v_mon = sy-datum+4(2).
if pnptimr1 = c_x. " Current Date
pnpbegda = sy-datum.
pnpendda = sy-datum.
elseif pnptimr2 = c_x. " Current Month
concatenate v_year v_mon c_val into v_date.
concatenate v_year v_mon c_val1 into v_date1.
pnpbegda = v_date.
pnpendda = v_date1.
elseif pnptimr3 = c_x. " Current Year
concatenate v_year c_val c_val into v_date.
concatenate v_year c_val2 c_val1 into v_date1.
pnpbegda = v_date.
pnpendda = v_date1.
elseif pnptimr4 = c_x. " Upto Today
pnpbegda = c_date1.
pnpendda = sy-datum.
elseif pnptimr5 = c_x. " From Today
pnpbegda = sy-datum.
pnpendda = c_date2.
else.
if ( pnpbegda is initial and pnpendda is initial ).
pnpbegda = c_date1.
pnpendda = c_date2.
elseif pnpbegda is initial and not pnpendda is initial.
pnpbegda = c_date1.
pnpendda = pnpendda.
elseif not ( pnpbegda is initial and pnpendda is initial ).
pnpbegda = pnpbegda.
pnpendda = pnpendda.
endif.
endif.
endform. "get_period
*& Form get_master_data
Get the Master Data from Database Tables PA0001,0002,0003
form get_master_data.
Get data from Respective Infotypes
rp_provide_from_last p0001 space pnpbegda pnpendda.
if p0001-kostl in pnpkostl.
rep_tab-kostl = p0001-kostl.
rep_tab-pernr = p0001-pernr.
rep_tab-ename = p0001-ename.
Get the Position Text
clear t528t-plstx.
select single plstx into t528t-plstx from t528t
where plans = p0001-plans and
otype = c_type and
sprsl = sy-langu.
if sy-subrc = 0.
rep_tab-ptext = t528t-plstx.
endif.
Get the Cost Center Text
clear cskt-ltext.
select single ltext into cskt-ltext from cskt
where spras = sy-langu and
kokrs = c_kokrs and
kostl = p0001-kostl.
if sy-subrc = 0.
rep_tab-ctext = cskt-ltext.
endif.
Get the Overtime Payment Data
perform get_ot_data.
rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +
rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +
rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +
rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.
append rep_tab.
clear rep_tab.
endif.
sort rep_tab by kostl pernr.
delete rep_tab where kostl = ' '.
delete rep_tab where ott = 0.
endform. "get_master_data
*& Form get_ot_data
Get the Overtime Payment Data
form get_ot_data.
cd-key = pernr-pernr.
rp-imp-c2-cd.
sort rgdir by seqnr.
To get sequence number for the payroll period
loop at rgdir where void is initial
and reversal is initial
and outofseq is initial
and srtza eq 'A'.
if rgdir-fpper+0(4) = p_year.
To consider offcycle run data
if not rgdir-ocrsn is initial.
v_seqnr = rgdir-seqnr.
exit.
endif.
v_seqnr = rgdir-seqnr.
endif.
if not v_seqnr is initial.
perform import_rx.
endif.
perform process_wagetypes.
endloop.
endform. "get_ot_data
include rpppxm00.
*& Form Import_rx
Import the RX data from Clusters
form import_rx.
rx-key-pernr = cd-key-pernr.
rx-key-seqno = v_seqnr.
rp-init-buffer.
rp-imp-c2-rx.
endform. " Import_rx
*& Form Process_wagetypes
Calculate the Overtime Amount based on Wage types
form process_wagetypes.
loop at rt.
if rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
if rgdir-fpper+0(4) = p_year.
v_mon = rgdir-fpper+4(2).
case v_mon .
when c_1.
rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
when c_2.
rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
when c_3.
rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
when c_4.
rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
when c_5.
rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
when c_6.
rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
when c_7.
rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
when c_8.
rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
when c_9.
rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
when c_10.
rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
when c_11.
rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
when c_12.
rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
endcase.
endif.
endif.
endloop.
endform. "process_wagetypes
*& Form top_of_page
Write the Report and Column Headings
form top_of_page.
format color col_heading on.
write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,
/1(252) 'Overtime Payments Details'(011) centered.
format color off.
if pnptimr1 = c_x. " Current Date
write: /2 'Period From :'(036), sy-datum, 'To:'(006), sy-datum.
elseif pnptimr2 = c_x. " Current Month
write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.
elseif pnptimr3 = c_x. " Current Year
write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.
elseif pnptimr4 = c_x. " Upto Today
write: /2 'Period From :'(036), c_date1, 'To:'(006), sy-datum.
elseif pnptimr5 = c_x. " From Today
write: /2 'Period From :'(036), sy-datum, 'To:'(006), c_date2.
else.
if ( pnpbegda is initial and pnpendda is initial ).
write: /2 'Period From :'(036), c_date1, 'To:'(006), c_date2.
elseif pnpbegda is initial and not pnpendda is initial.
write: /2 'Period From :'(036), c_date1, 'To:'(006), pnpendda.
elseif not ( pnpbegda is initial and pnpendda is initial ).
write: /2 'Period From :'(036), pnpbegda,
'To:'(006), pnpendda.
endif.
endif.
write: 219 'Report Run Date:'(018), sy-datum.
if not pnpkostl[] is initial.
if pnpkostl-high is initial.
write: /2 'Cost Center :'(004), pnpkostl-low,
219 'Time :'(020), sy-uzeit.
else.
write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),
'To:'(006), pnpkostl-high,
219 'Time :'(020), sy-uzeit.
endif.
else.
write: /219 'Time :'(020), sy-uzeit.
endif.
if not pnppernr[] is initial.
if pnppernr-high is initial.
write: /2 'Personal Number :'(007), pnppernr-low,
219 'User :'(021), sy-uname.
else.
write: /2 'Personal No.From:'(008), pnppernr-low,
'To:'(006), pnppernr-high,
219 'User :'(021), sy-uname.
endif.
else.
write: /219 'User :'(021), sy-uname.
endif.
write: /219 'Page No :'(022), sy-pagno.
format color col_heading.
write /1(252) sy-uline.
write:/1 sy-vline, 10 sy-vline,
41 sy-vline,
67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,
235 sy-vline,252 sy-vline.
format color col_heading.
write:/1 sy-vline, 2(8) 'Emp #'(019) centered,
10 sy-vline, 11(30) 'Employee Name'(012) centered,
41 sy-vline, 42(25) 'Position'(014) centered,
67 sy-vline, 68(167) sy-uline,
235 sy-vline,236(16) 'Total'(017) centered,
252 sy-vline.
write:/1 sy-vline, 10 sy-vline,
41 sy-vline,
67 sy-vline, 68(13) 'JANUARY'(024) centered,
81 sy-vline, 82(13) 'FEBRUARY'(025) centered,
95 sy-vline, 96(13) 'MARCH'(026) centered,
109 sy-vline,110(13) 'APRIL'(027) centered,
123 sy-vline,124(13) 'MAY'(028) centered,
137 sy-vline,138(13) 'JUNE'(029) centered,
151 sy-vline,152(13) 'JULY'(030) centered,
165 sy-vline,166(13) 'AUGUST'(031) centered,
179 sy-vline,180(13) 'SEPTEMBER'(032) centered,
193 sy-vline,194(13) 'OCTOBER'(033) centered,
207 sy-vline,208(13) 'NOVEMBER'(034) centered,
221 sy-vline,222(13) 'DECEMBER'(035) centered,
235 sy-vline,252 sy-vline.
format color off.
write /1(252) sy-uline.
endform. "top_of_page
*& Form Display_report
Write the Report Output
form display_report.
clear v_no.
describe table rep_tab lines v_no.
if v_no = 0.
message i999 with
'No Data found for the entered Selection'(015).
endif.
loop at rep_tab.
format color 3.
at new kostl.
read table rep_tab index sy-tabix.
write:/1 sy-vline, 2(12) 'Cost Center:'(009),
14(10) rep_tab-kostl,
25(30) rep_tab-ctext,
252 sy-vline.
format color off.
write /1(252) sy-uline.
endat.
format color col_normal.
write: /1 sy-vline, 2(8) rep_tab-pernr,
10 sy-vline, 11(30) rep_tab-ename,
41 sy-vline, 42(25) rep_tab-ptext,
67 sy-vline, 68(13) rep_tab-ot1 no-zero,
81 sy-vline, 82(13) rep_tab-ot2 no-zero,
95 sy-vline, 96(13) rep_tab-ot3 no-zero,
109 sy-vline,110(13) rep_tab-ot4 no-zero,
123 sy-vline,124(13) rep_tab-ot5 no-zero,
137 sy-vline,138(13) rep_tab-ot6 no-zero,
151 sy-vline,152(13) rep_tab-ot7 no-zero,
165 sy-vline,166(13) rep_tab-ot8 no-zero,
179 sy-vline,180(13) rep_tab-ot9 no-zero,
193 sy-vline,194(13) rep_tab-ot10 no-zero,
207 sy-vline,208(13) rep_tab-ot11 no-zero,
221 sy-vline,222(13) rep_tab-ot12 no-zero,
235 sy-vline,236(16) rep_tab-ott no-zero,
252 sy-vline.
at end of kostl.
write /1(252) sy-uline.
endat.
format color off.
at last.
sum.
format color 1.
write: /1 sy-vline,
10 sy-vline, 11(30) 'Total'(017) centered,
41 sy-vline,
67 sy-vline, 68(13) rep_tab-ot1 no-zero,
81 sy-vline, 82(13) rep_tab-ot2 no-zero,
95 sy-vline, 96(13) rep_tab-ot3 no-zero,
109 sy-vline,110(13) rep_tab-ot4 no-zero,
123 sy-vline,124(13) rep_tab-ot5 no-zero,
137 sy-vline,138(13) rep_tab-ot6 no-zero,
151 sy-vline,152(13) rep_tab-ot7 no-zero,
165 sy-vline,166(13) rep_tab-ot8 no-zero,
179 sy-vline,180(13) rep_tab-ot9 no-zero,
193 sy-vline,194(13) rep_tab-ot10 no-zero,
207 sy-vline,208(13) rep_tab-ot11 no-zero,
221 sy-vline,222(13) rep_tab-ot12 no-zero,
235 sy-vline,236(16) rep_tab-ott no-zero,
252 sy-vline.
write /1(252) sy-uline.
endat.
format color off.
endloop.
endform. "display_report
Reward points for useful Answers
Regards
Anji -
I want to add same value/text in every cell in a column in Numbers 3.0
I want to add same value/text in every cell in a column. For example, in all my file names are for pictures that are uploaded to a host site, but the name in the cell does not include the URL associated with it. Does anyone know how to be able to add text to a whole column in front of the current text already in that column?
Assume the filenames are in column C.
Let's says you want to add the text before each file name "http://www.apple.com/"
add a new column (let's say D) and add the formula:
D1="http://www.apple.com/"&C
this is shorthand for... in cell D1 type (or paste from here) the text ""http://www.apple.com/"&C" without the first and last double quotes
select D1, copy
select the column D by clicking the letter D at the top of the column, paste
The "&" is called the concatenate operator and joins two strings together -
Do I =Reference a data cell? or =Address the Cell
OK,
Anybody know why I cant "=reference" or "=Address" a single cell in Table 1 from Table 3? I'm using the following Function: "= ADDRESS (Row 30 :: Column B :: Table 1). I'm very new and am feeling very, very stupid!!!
I would also like to be able to add a sheet to the "correct" equation so that I can also reference between sheets, tables, columns and rows.
Thanks!!!
A very humbled MAC Fanatic
Bob
P.S. the cell I am trying to reference has function "=SUM(B2:B29)". I have tried using this formula, as well as, a specific number without any equation attached to it... Same results! TX!!!I tink what Yvan was trying to imply was that the reference might not be bad, its the use of the function.
ADDRESS
The ADDRESS function constructs a cell address string from separate row, column, and table identifiers.
ADDRESS(row, column, addr-type, addr-style, table)
The address function takes multiple arguments, that then return a string that LOOKS like a true reference. This can be used by Indirect to return a true reference that can be utilized inside other functions. It allows a refrence to be constructed from the results of other cells values.
I utilize this one often if I have a single table for each month and need to create a summary table that reports on each other table. I just list the tables as a column of data, refer to it from an address inside indirect within my sum or average, or offset, and fill down. It gives the ability of adding more tables, users etc... and never having to rewrite the formulas. Just fill down.
The other thing that is wrong is the format of the reference posted itself though:
Row 30 :: Column B :: Table 1
would actually be:
Table 1::B30
So, when you put it all together, the user is trying to put a SUM result as the Row argument of a address function without providing at least the minimum required arguments for Address. While possibly parsing the reference wrong.
Jason -
Multicolumn list box, "operate value tool" and "active cell"
If I use the "operate value tool" to select a row
of the multicolumn list box, that row gets a dark blue background.
However, I cannot determine which property will tell me what is that row or let me
change that row number. It is not the active cel or "edit position".
I want to programatically change the selection just as the "operate value tool" does. I can change the background color of the cell but the dark blue of the cells selected by the "operate value tool" take precedence and hide my colors.
Extremely frustrated and wishing for Java or C++...
AlanHi Alan,
Have a look at event structures and invoke nodes (Point to Row Column) and use property nodes. Here is an attachment.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
mclistbox.PNG 12 KB -
Absolute cell references with named cells?
I know how to make a cell reference absolute with numbered cells, as in $A12.
But what if the formula includes named cells, as in:
=Table 1 :: 'Electric - Tank' Annual Fuel Cost+Table 1 :: 'Electric - Tank' annual maintenance
I have tried the $ in various places, no luck so far. Please help...I found another similar thread, and the folks there helped me figured out what I was doing wrong.
You need $ before EACH reference, both the cell's Row header AND column header. This made sense for the "old" cell label way, but the header names confused me at first. So:
=Table 1 :: $Electric Tank $Annual Fuel Cost+Table 1 :: $Electric Tank $annual maintenance -
It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off). Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi, it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)? Any ideas on how to get iPad working with GPS only??
Roger that. Thanks for your time.
System:
Windows 7 64bit
Processor: AMD phenom IIX4 965
RAM: Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
PSU: Kingwin 1000W laser gold (LZG-1000)
Yes. tried the one ram stick, no go. I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install. I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3. Yes I can see the Vertex 3 Drive as well as the WD drive at this point. some times I have to hit "scan" a couple of times. -
I've run into a strange problem with the table control. Basically, even though I set default cell values for a particular column as numeric, when I try to add items to the list it tries to add them as strings, and returns an error message that it is expecting *char instead of int. Furthermore, when I open the uir file that contains the table in question in 2010, it appears as if the default cell values for that column are still set as strings, even though in 2009 when I open the uir file it shows as numbers. I tried converting the uir to C code, and sure enough the C code indicated that the column still is a string type.
I've gone ahead and made a small project to show the issue. If you open this project in labwindows 2009 and click on the table in the table_bug.uir, and edit default cell values for column 1, you will see that the cell settings have type as numeric and data type as int. When you run the project, however, it will fail with an error message saying that it is looking for a *char. When this same project is loaded into labwindows 2010, clicking on the table in table_bug.uir and edit default cell values (column 1) shows the type as string. When I change this to numeric (and change numeric attribute to int), this runs fine in 2010. I tried simply changing the uir in 2010, and then using it in 2009, but 2009 complains that the uir is from a newer version (understandable). If there is any workaround that would let me continue to use 2009 for the time that would be great.
Any help would be greatly appreciated.
thanks,
Alex Corwin
Solved!
Go to Solution.
Attachments:
table_bug.zip 324 KBI opened the UIR in 2009 (but I have 2009 SP1) and it still showed that the default value for the first column was a string. I didn't have any problems changing it to a numeric int, and then building and running the project without error.
Here are a few things you can try:
1) Change the default value to a string. OK out of the dialog, re-enter the dialog, and change it back to Numeric int. Resave and see if the problem has gone away.
2) You said you get a ".UIR is from a newer version" error when opening the 2010 UIR in 2009. Does the UIR still open if you click okay? Often times this will work just fine. Assuming you don't have any problems with this, make a minor change to the UIR in 2009, such as moving the table to the left, and then back to the right and then re-save. See if your program works now.
Kevin B.
National Instruments -
How can I copy a formula to 1,000 contiguous cells in a column?
How can I copy a formula to 1,000 contiguous cells in a column?
As long as the cell uses "relative" forumla, I usually take an intelligent brute force effect:
Copy 1 to another, copy the 2 to 4, 4 to 8, 8 to 16, 16 to 32, 32 to 64, 64 10 128, 128 to 256 3 times over.
Does not take as long as one would think, and is a controllable process. -
Function that returns currently selected cell address or column
Is there a function that returns the address (or just the column) of the currently selected cell? Simply put, something like =selectedcolumn.
Background: I want to display help text in a cell, and I want that help text to change according to which cell (actually, which column) the user has selected. I have put the help texts in a hidden row. They take up too much space to be displayed all the time. I want one cell to contain the help text of the column of the currently selected cell.
Trying to not use Filemaker for this project if possible
Thanks for any help /MattThe Numbers method, using comments as Barry showed, is probably the best method. An alternate method which is more complex would be to use an Applescript running in the background. The Applescript can scan in the background for which cell/column is currently selected and write that cell/column address into a cell in your table. A formula in your table (most likely a lookup formula) can use that address to serve up the correct help text in a diffrerent cell in the table or in another table.
Some problems with this methodare
The script is not part of the document. It is a separate entity.
The script must be started manually. It will not automatically start when the Numbers document is opened.
If the Numbers document is to be used on other Macs, each would also need the script installed.
Maybe you are looking for
-
Sqlplus exit with bind variable gives error
Hi, I want to return the ID-value from an insert-statement back to the OS, but I can't catch it properly in a variable to exit that variabel. here's the script: variable logid NUMBER; select id_seq.nextval into :logid from dual; -- insert into Tab_A
-
Streaming problems with MacBook Pro, iPhone 5 works fine
If I try to listen music via airplay from iTunes (Mac Book Pro 2009) it stops every 20 seconds for 2-5 seconds and then continue. It is impossible to listen music like that. If I do the same with my iPhone 5, everythink works fine for hours. I am sit
-
QuickTime Problem. Doesn't play video.avi.
I have updated the system up to the latest - Maverick. After that QuickTime Player doesn't play video.avi. I have tried restarting the app - worthless. Yet, it has been showing 'Converting' for 30 mins. Please, help!
-
How to transfer Avid XPress project on PC to Premiere CS4 on laptop?
Hi, I have the following problem: I have an Avid Xpress sytem on a PC and Premiere Pro CS4 on a laptop. I have a project on the PC that I would like to edit while travelling with the laptop - and I'm trying to work out how to transfer the project fro
-
NW portal for development purpose to install locall computer
Hi Is there development purpose portal installation to Win XP computer? I want to use it for development purpose. Thanks.