function, which returns an address in text format.. Formula That Generates Dynamic Column in Google Sheets Query This is my master formula. var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets() [0]; // 1 if there is a group over rows 1 through 3. If you want to eliminate manual data imports and save time, then let me will show you how you can automatically connect and import data from external sources into Google Sheets. First of all, thank you! Find the Last Row with Data. However, there is a way to copy/move a formula from a single cell without changing the references. It's . The first thing you should know is . The snippet below will return the indexes of the filtered rows in a given Sheet. (You can also manually type the column name and row number to reference the cell.). The ROWS function is a build-in function in Google Sheets and it is categorized as a LOOKUP function. the names you add the first row of each column. For this guide, I will be selecting F2, where I want to show my result of row 2.; Next, type the equal sign '=' to begin the function and then followed by the name of the function which is 'lookup' (or 'LOOKUP', whichever works). above or Column right / Row below. I want to have all the importrange formulas to reference to the row number in A1 but keep the column reference in the formula. After that, it will freeze the first row, i.e. Google Sheets Query Function About this document Why the Query function? Absolute Reference in Google Sheets: A Beginner's Guide. One solution is dragging the formula down to apply it to the whole column. Row groups can then be expanded and collapsed with a single click to show or hide the data in that group. To reference an entire column you can use, for example: Sum (A:A) So I guess the syntax you are looking for is A:A. Worksheet (Sheet): The named sets of rows and columns making up your spreadsheet; one spreadsheet can have multiple sheets Spreadsheet : The entire document containing your worksheets If you've never used Google Sheets—or, especially if you've never used a spreadsheet before—be sure to check out Google's Getting Started Guide for Sheets. Type the following function: = [sheet name], exclamation point, a cell that you want to copy. Google Sheets Query: Select. More Detailed Description of Reference Types Reference Individual Cells. The solution: Query by Column Name We just need to combine our query () function with the substitute () and match () function, and we'll be able to reference the actual name of the column. The following function will create a Google Sheet named `TestSheet` in your Google Drive. reference is the range to look in. Get rows: This operation retrieves the records from a specific Google Sheet. Open your Google Sheets file. For example, if this is representing Sheet1 , and the spreadsheet was requested with ranges Sheet1!A1:C10 and Sheet1!D15:E20 , then the first GridData will have a startRow / startColumn of 0 , while the second one will have startRow 14 (zero-based row 15), and startColumn 3 (zero-based column D). Increment Cell Reference in Google Sheets. Get filtered rows. Hover over the bottom of the column heading letters until you see the hand icon, like this: Here's a close up of that hand for you: Click and hold your mouse button down, and drag the thick line down: Let go when you've reached the row level you want to freeze (in this case, just the top row): Syntax =ADDRESS (row, column, [absolute_relative_mode], [use_a1_notation], [sheet]) row - this value indicates the row number where the cell, that we need the address for, is located. You can use the ROW function (by adjusting it a little) to get the serial numbers in a column. A range is referenced by using two cell references . To apply a formula to an entire column in Google Sheets by using a single formula, wrap the formula that you would like to be expanded, in the ARRAYFORMULA function. The dollar sign has three different states: Absolute for column and row. Recently at work, I had assisted a colleague solve a seemingly complex problem on google sheets. Understanding the basics of working with a range in Google Sheets using Google Apps Script. How To Convert Rows to Columns in Google Sheets Anna Middleton Read more April 4, 2021 Google Spreadsheets is an extremely useful online tool that allows you to create tables and fill them with . The reference is absolutely locked. . March 1, 2019 | Posted in Google Apps Script, Google Sheets. This limitation exists probably because the first row of a spreadsheet is no different from all the other rows. The number of names might be equal to the index of the last row. You got it! To query from another tab within the same spreadsheet in Google Sheets, you can use the following syntax: =query(stats!A1:C9, " select A, B ", 1)This returns columns A and B from the cell range A1:C9 within the tab named stats.The 1 specifies that there is 1 header row at the top of the dataset being queried.. To query from another spreadsheet entirely, you can use the following syntax: By default, HubSpot sends internal property values to Google Sheets. . Universal Method. The group depth indicates how many groups overlap with the row. This is just how Excel and Google Sheets work. List in row = you only need [column] (as there's only one row in reference) List in table = you need both [row] and [column] Let's assume you have your list in a column. The CONCATENATE google sheet function helps you do just that. The letter indicates the column and the number indicates the row. The difference between the INDIRECT function and a typical direct function is that a typical function directly references a cell (or range of cells) within the formula. Using the exclamation point between the name of the sheet and the column and row reference, this formula displays in a cell in Sheet1 whatever is in Sheet2 in column A in the corresponding row. Here is that formula to get dynamic column reference in Google Sheets Query. In a normal function, Google Sheets would shift the reference accordingly - but not here. You rarely want to apply a formula to a single cell. You will be asked to provide read and write access to your Google Sheets as well as Google Drive. Equally, if you want to use every piece of data in a column excluding the first, lets say 2, rows you can use A3:A (in google sheets only) Share. Required. You can create a Google Sheets data source with one of either of the two permission scopes listed below: 1. So, we want don't want to specify a limit to the number of rows Google Sheets should look at.) I need to tell Sheets: "No, I want you to multiply all of my sale prices by cell C1, every time." The Solution: Absolute References. Get sheets: Retrieves sheet names from a Google Sheet file. The first method uses . Grouping rows in Google Sheets allows you to organize and summarize related data. Once the values are added or changed, the Google Sheets will automatically update the . I know how to reference individual cells, but I don't know how to reference an entire row. If your range has or can have blank cells, you can find the last non-blank row using one of the methods below. How? I've made that work for just 1 check box, but now I'm struggling with the "AND" function. Read and Write: This scope allows you to use all the methods available within Appsmith's Google Sheets integration. How to reference a range in a Google Sheets formula? For example, A1, C5, and E9 are all references to a single cell. The solution worked "perfectly", but there was a small issue ; The range doesn't automatically increase when a new value is added to a row. The purpose of this function is to get the number of rows in an array or cell reference and It's returned value is a number of rows. I can see that this was posted long back. But it can easily be done using a simple combination of formulas in Google Sheets . A cell that is in Sheet1 at the intersection of column C and row 5 will have the following reference: Sheet1!C5. column, just like row, is the number of offset columns.Also optional, also 0 if omitted. Delete Row: This operation is used to retrieve a row from a Google Sheet. Here's the formula: =CONCATENATE (string1, string2, string3, …) You can also use a variation of the same formula to combine the data in cells, AND incorporate a spacing in between the different data. The ROWS function can be used to return the number of rows in a specified range in google sheets. It works in the opposite way to the ADDRESS. For container bound Google Sheets, the getA1Notation() method can return the range address in A1 Notation. In the action "Update row . Under If yes branch, add the action "update row". In the previous post in the Google Apps Script Pattern series we looked at selectively updating rows of data in a Google Sheet.For this post we will look at a couple of patterns for inserting multiple rows of data into Google Sheets. ROW function is Google Sheets gives you the row number of the cell reference you give to it. The INDIRECT function in Google Sheets takes in the cell address in the form of text and returns a cell reference. To start, simply click on a cell to make it the active cell. Would still want to answer here and complete the loop. Type the following function: = [sheet name], exclamation point, a cell that you want to copy. For example, column #7 in Google Sheets is also column G. While the column letter is always visible in the header, there is no direct formula to get this call him later in the cell (while there is a formula to get the column index number - COLUMN() function). When copied across multiple cells, they change based on the relative position of rows and columns. To delete rows in Google Sheets, select the row(s) that you want to delete, right-click on the selected row, then click "Delete row" . This formula works exactly the same way as the above one for incrementing cell reference in a column. We use cell referencing in Google Sheets to help our formulas look for the values they need. Get row: This operation retrieves a single row from a Google Sheet. Press enter. For example, the formula in the Inventory Value column of the following inventory management sheet will multiply the value . G Suite™ Google Sheets Quick Reference Guide z Spreadsheet name Activity Menu bar Share settings Show side Explore panel Formula bar Google account Comment history The ADDRESS function returns the cell reference as a string. For example, if you copy the formula =A1+B1 from row 1 to row 2, the formula will become =A2+B2. This tutorial is a follow-up of sort to Auto Fill a Google Doc from Google Form Submissions, so if what you want to do involves a form, that would be worth checking out as well. For the purposes of this guide, I will be choosing A1, where I will write my formula. Reference Data from Other Sheets in a Spreadsheet. ; row is the number of rows to offset from the very first cell of your range. One can use column IDs (the letters located at the top of every column in a spreadsheet), reference columns as Col1, Col2 and so on in . The SELECT clause allows defining the columns you want to fetch and the order in which you want to organize them in your new worksheet. It is noteworthy that the resulting address is a string and not the cell reference. This tutorial will demonstrate how to find the last non-blank row in a dataset in Excel and Google Sheets. To get a random sample from a list in Google Sheets, things get a little more complicated than if you were to just get a single item. In this post, I'll walk you through how to auto fill Google Doc templates with data pulled from a Google Spreadsheet using Google Apps Script. Follow these steps: Open your spreadsheet. Lots of the Google Apps Script projects that people are working on start with a Google Spreadsheet as a base. Follow these steps: Open your spreadsheet. ; Choose the Freeze option, then click 1 row. criterion or searching criterion - a value to find and count across the data range indicated in the first argument. If you work on a spreadsheet with multiple sheets, you can reference data from other sheets by using a simple function. Google Sheets: Types of Cell References Watch later Watch on Relative references By default, all cell references are relative references. Usually, you want to use them across a row or column and apply them to many cells. If you've got 5 rows of names . For dates, HubSpot sends . I have a Google Sheet with 3 columns of checkboxes and I'm trying to program it so that if all 3 columns in the same row are checked (=True) the entire row turns green. Answer: I stumbled upon this question while scrolling through the various Questions on Google Sheets. In the code sample here, we're only exposing rows hidden by filter. the first row will be non-editable. function addProduct() { var sheet = SpreadsheetApp.getActiveSheet(); sheet.appendRow . Google Sheets does provide handy keyboard shortcuts for adding date and time to a field: Ctrl / Cmd +: to insert date: 7/21/2020. And am assuming that by now you must have found a solution or a work around. ("&ROW()" inserts the number of the current row into the formula . Hmm…. If I write the query to look like "order by '"&B2&"' asc" and cell B2 contains "Col38", the query does not sort. If you see this issue on your Zap, add a Delay after Queue step before your Create Spreadsheet Row(s) step to to help spread out the row creation timing. Query expression syntax Select and sort Adding a 'where' clause for criteria Making sense of the syntax Option 1 - the long-winded approach Option 2 - the more compact form Using a 'where' clause to eliminate blank rows Com. ; Our article continues below with additional information on adding a header row to a Google Sheets spreadsheet, including pictures of these steps. This type of reference is known as A1 notation. That third parameter tells Google Sheets whether the references to the row and column are relative or absolute. Sometimes a Google Form writes data to a spreadsheet that triggers other events, or you have a Sheet you've imported that you want to use to coordinate a larger workflow. Next, type the equal sign ' = ' to begin the function. These formulas work exactly the same in Google Sheets as in Excel. Required. And if you don't give it any input argument, it will return the row number of the cell in which it is used. Using the ROW Function to Number Rows. You said that row id on google sheet equals the record id in Salesforce, please add a Condition after the action "Get rows" and configure it as Row Id equals to Record Id. In this case, we get "C1 . Ctrl / Cmd + Shift + : to insert time: 3:25:24 PM. Place your cursor in the cell where you want the imported data to show up. If you change row 52 to subscription 1060 instead of 1050, we still get the result for 1050, because LOOKUP doesn't give exact matches. If you work on a spreadsheet with multiple sheets, you can reference data from other sheets by using a simple function. "How can I get Google Sheets to auto-update a reference to another sheet? The spreadsheet cannot exceed 5,000,000 cells. For example, if I create a formula like =Sum(A2+A3+A4+A5) and delete row 3, the A3 cell is gone and the formula will break. A few months ago, I blogged about how I used Pipedream and Google Sheets to create a Twitter bot. If you specify both optional arguments (row and column), Google Sheets INDEX will return a record from a destination cell: We'll start with the writing data example on the Google Apps Script site:. Use one of the formulas below: =Sheet1!A1 where Sheet1 is the exact name of your referenced sheet, followed by an exclamation mark, and A1 is a specified cell that you want to import data from. Or ='Sheet two'!A1 These values are oftentimes not fixed; sometimes they are not even known at the time the formulas are added. Add a description into each cell in row 1. Open a sheet in Google Sheets. Add $ to the formula to use absolute references. Google Sheets is a great tool to use for business intelligence and data analysis. Google Sheets Absolute References Previous Next Absolute References Absolute reference is when a reference has the dollar sign ( $ ). Once you reference (i.e., access) a range, you can read values from it using the getValues() method or write values to it using the setValues() method. The lists for the two dropdowns are located on a sheet named "Master" where the first list points to the heading row of the table (cells A3:C3) and the second list points to the remaining items in the table (cells A4:C20). HubSpot will add data to empty rows below any existing data in the sheet. Let's see how to write your own COLUMN function in Google Sheets step-by-step. Example =$A$1 Sometimes a Google Form writes data to a spreadsheet that triggers other events, or you have a Sheet you've imported that you want to use to coordinate a larger workflow. Then, it will add some text in the first three cells of the first row of the spreadsheet. Google Sheets doesn't include a feature to change the reference notation from A1 to R1C1 but the last could be used with the INDIRECT built-in function. Suppose that that we've got 5 names in our range A2:A. Not fun! Ctrl / Cmd + Alt + Shift + : to insert the full timestamp: 7/21/2020 12:05:46. I am using Google Query with an importrange function so I have to use Col# to reference things. When adding data to your Google Sheet, do take note of the following limits: Each action can add up to 20 cells of data per row. It should now be =A1*A2, press enter to see what . How to Find Last Value in Each Row in Google Sheets. You have successfully calculated A1 (2) + A2 (4) = C1 (6). So when a new row is added to the top that will become row 2 and if I have inputted something in column 13 to start a timer it functions, but my problem is if I add a new row 2 and nothing has been inputted in column 13 on the now row 3 but put a value in on row it works till I put something in on row 3. ;-) From what . Select a cell. ARRAYFORMULA in Google Sheets. So the solution involved this colleague of mine having to go back to the formula to increase the range whenever a new value was added. Examples: $B30 means: Always . Please try to use action "Get rows" instead of "Get row". My query works perfectly and if I type in the " order by Col2 asc" the query sorts as expected.. Note: Using cells to make calculations is an important part of Google Sheets and you will use this a lot as you learn. While building your formula, you can select a cell to reference it and work with that cell's data in your formula. It gives the closest match, which in this case, would be the value for 1050: . You can use an Absolute Reference to send this message to Sheets (or Excel; they handle cell referencing the same way). We have a spreadsheet where the first dropdown list will be created in cell A3 while the dependent (second) dropdown list will be created in cell B3.. . range - a range of cells where we want to count a certain value. Google Sheets fully supports calling data from one sheet and using it in another. Note: In the above code, "delete containing" is the sheet name containing the data you want to delete, "C:C" is the column with specific text you want to delete from, "Complete" is the specific text that you want to delete rows based on, please change them to your need.. 3.Then save this code, and then click Run button in the code window to execute this script code, see screenshot: For example, note the two IF formulas below. The only difference is that the rows argument of the function is set to zero and the cols argument is incremented by 4. There's just one small challenge: You can't reference columns by header labels, i.e. I appreciate this article very much. Required. Google Spreadsheet COUNTIF in practice. Insert row: This operation is used to insert a new row in a Google . March 1, 2019 | Posted in Google Apps Script, Google Sheets. Optional, 0 if omitted. To do this, add a " " in between your strings. If you select the cell, press Ctrl + C, select . =INDEX (A2:A) Next, we need to specify the "index" of the last row in our range. This is telling Google Sheets to grab all the data from the G column that ranges between rows 10 and 21. spreadsheet_key: Every Google Sheet has a URL that looks something like this . This can range between zero and eight. Improve this answer. This way I can just change A1 and all formulas will reference to this row number in the import range. Example In a sheet having 1000 rows, the following formula will return 1000 =ROWS (INDIRECT ("C1",FALSE)) Share Improve this answer edited Jun 16 '20 at 10:46 Community Bot 1 The ADDRESS Google Sheets function returns a cell's address in the form of a text. To make sure my formula stays glued to that Sales Tax Factor in C1, I can add some dollar signs to my formula before the C and the 1. To reference a single cell in a formula, use the name of the sheet followed by an exclamation mark, the column and finally the row. Select A2. For example, the formula shown above =A3/B$1 has a dollar sign before the row number of the reference to cell B1, which means that as the formula is copied and pasted downwards, the row reference will not . To copy the rows based on specific text to another new sheet, the following formula may help you, please do as this: Enter this formula: =filter(original!A:E,original!E:E="Complete") into the new sheet where you want to paste the specific rows, and then press Enter key, all rows which contain the specific text in column E have been pasted into this new sheet, see screenshot: Move Cells: Select the cell(s) you want to move. Please help, and thanks. A reference to a single cell is a combination of a letter and a number. You may have noticed the third parameter in that formula. Reference the range containing all of the data in a given sheet. I've set the value to 4 which tells Google Sheets that both references are relative. It may seem that COUNTIF is so simple that it doesn't even count as a function (pun intended), but in truth its potential is quite impressive. I've made that work for just 1 check box, but now I'm struggling with the "AND" function. However, doing that per row is still work; more importantly, I wanted to be able to . Due to how Google Sheets creates rows, the Zap can have trouble if multiple runs are in progress at the same time, or if you have multiple Zaps writing to the same spreadsheet. Reference Data from Other Sheets in a Spreadsheet. Google Sheets Freeze Row Shortcut Trick. Google Sheets: A Simple Formula for "If Contains". In this way, if a row is deleted within the range, the reference continues to apply over the deleted row. It locks a reference in the formula. Lets change from addition to multiplication, by replacing the ( +) with a ( * ). This is useful when you want to keep detailed information in the spreadsheet for reference, but want the option to view a more concise, summarized dataset. In my example above, there is already data in the cells below my selected cell, C2, so Google Sheets wouldn't allow me to import that range. The solution is to use Arrayformulas that refer to a RANGE of cells/rows. A formula in a cell in Google Sheets often contains references to other cells in the sheet. Select a cell. I have a Google Sheet with 3 columns of checkboxes and I'm trying to program it so that if all 3 columns in the same row are checked (=True) the entire row turns green. But if you do this, just be sure the cell you're importing this data into has enough space. To start off, click on the cell where you want to start showing your results. I have over 1500 cells I need to reference for 11 different sheets, and manually referencing each cell takes hours. Choosing A1, C5, and E9 are all references to the row number of might. Or changed, the reference continues to apply it to the whole column only exposing rows by... To offset from the very first cell of your range has or can have cells... Name and row 5 will have the following function: = [ name. Can just change A1 and all formulas will reference to send this message to Sheets or. Allows you to use Col # to reference to send this message Sheets... '' > I & # x27 ; ll start with a Google sheet sometimes they are even... The same way ) a letter and a number can return the indexes of the following function: = sheet... Is an important part of Google Sheets will automatically update the the address function returns the cell )... Same way ) working with a Google spreadsheet as a base given sheet ; the. Exists probably because the first three cells of the Google Sheets names from a Google spreadsheet as a and. Select the View tab at the top of the Google Apps Script that third tells... Using two cell references be sure the cell where you want to answer here and complete loop... Names in our range A2: a article continues below with additional on! Sheet file to this row number in A1 but keep the column name and row will!, HubSpot sends internal property values to Google Sheets to help our formulas for. It gives the closest match, which returns an address in A1 notation manually type following. This a lot as you learn but if you work on a spreadsheet with multiple Sheets, the continues... Data in that group references are relative references are relative or absolute sample. Row your data ends, C5, and manually referencing each cell takes.. Use absolute references Sheets, you can reference data from other Sheets by using a combination! Have the following function: = [ sheet name ], exclamation point, a cell you... Reference in the first row, i.e combination of formulas in Google Sheets API with the writing example! Are not even known at the time the formulas are added or changed, the data range in! Each column to manually update each of Col # to reference individual cells, then click and the. The idea was simple - read a sheet - select a random row - and use that as the of! The same way ) found a solution or a work around limitation exists probably because the first row the. Noteworthy that the resulting address is a way to copy/move a formula to use action & quot.! Down to apply a formula from a Google spreadsheet as a base as Google Drive dynamic column in.: //www.labnol.org/convert-column-a1-notation-210601/ '' > Integrate the Google Sheets API with the row column... 1 row the names you add the first row of the filtered rows in a spreadsheet. Names you add the first three cells of the following Inventory management sheet multiply. Point, a cell to make calculations is an important part of Google to! Between your strings that people are working on start with a range in Google Sheets Query ( 6.. Action & quot ; 6 ) the intersection of column C and row 5 will have following... Incremented by 4 by replacing the ( + ) with a range is referenced using! Many groups overlap with the row number of rows to offset from the first. The time the formulas are added or changed, the formula in cell! From all the importrange formulas to reference for 11 different Sheets, you can an... Click to show or hide the data in that group criterion - value. Use action & quot ; in a Google sheet file specified, the Google Script... Note the two if formulas below row - google sheet reference row use that as the source of a and... Third parameter tells Google Sheets, you can use the row is Google Sheets as in Excel to the... The relative position of rows and columns given sheet by using a simple function of quot! A href= '' https: //pipedream.com/apps/google-sheets/integrations/discord '' > 20 Google Sheets automatically the. Not specified, the Google Sheets and it is categorized as a and... Using a simple combination of formulas in Google Sheets whether the references to a single cell. ) the of! The names you add the action & quot ; into the formula a. Importantly, I will be asked to provide read and write access to Google! You don & # x27 ; ve set the value this scope allows you to use absolute references &!, type the column reference in Google Sheets using Google google sheet reference row with an function. A random row - and use that as the source of a new location formulas below it the active.... Of & quot ; in a column first cell google sheet reference row your range a column use! If formulas below lets change from addition to multiplication, by replacing the ( + with. Will use this a lot as you learn I need to reference an entire row the argument! Write my formula reference things 1050: Sheets that both references are relative now. I can see that this was posted long back the data in that.... Whole column - read a sheet - select a random row - and use as! A build-in function in Google Sheets to help our formulas look for the purposes of guide. A given sheet for example, A1, where I will be returned & quot ; update row quot! A number will use this a lot as google sheet reference row learn ; get row & quot ; update row quot! And E9 are all references to the index of the Google Apps Script projects that people are on... Formula to get the serial numbers in a Google Sheets and you will use a!... < /a > here is that formula to get dynamic column in Google Sheets you. Working on start with a Google sheet file select the View tab at the the! Using a simple function change the single cell is a way to copy/move a formula to use &. This scope allows you to use absolute references ; ll start with the row number of the filtered rows a... On a spreadsheet is no different from all the other rows be asked to provide read write! This row number of rows to offset from the very first cell of your has. Single cell without changing the references to a single cell references, so you don #. Last row Script site:: retrieves sheet names from a Google spreadsheet as a.! If your range Sheets gives you the row ; = & # x27 ; t know how to Convert number! First cell of your range importing this data into has enough space this type of reference is known A1. And it is categorized as a base first three cells of the page and columns letter indicates row!: absolute for column and apply them to many cells imported data show! Rarely want to apply over the outline of the spreadsheet this limitation exists because. ) = C1 ( 6 ) to insert a new location are added or changed, the formula categorized., which returns an address in A1 but keep the column name row... Continues below with additional information on adding a header row to a single cell references, so you don #. Reference is known as A1 notation was simple - read a sheet select! Full timestamp: 7/21/2020 12:05:46 reference individual cells, they change based on cell... To answer here and complete the loop and drag the cells to a new row in given! Use cell referencing the same way ) you want to answer here and complete loop. Source spreadsheet just like row, is the number of the Google Apps Script projects people! Idea was simple - read a sheet - select a random row - use... ; update row & quot ; as is & quot ; in between your strings sends property... Index of the methods available within Appsmith & # x27 ; m getting # ref when deleting.. The imported data to show up are oftentimes not fixed ; sometimes they are even. The cell references, so you don & # x27 ; ll start the... You have successfully calculated A1 ( 2 ) + A2 ( 4 ) = (... Row and column are relative or absolute based on the Google Apps Script projects that people are on... Name ], exclamation point, a cell that you want to start off google sheet reference row click on a with... Become =A2+B2 Google Sheets gives you the row referenced by using two references! ) method can return the indexes of the spreadsheet names you add action... Will reference to another sheet Discord API... < /a > here is that formula to get the serial in! Reference in the code sample here, we & # x27 ; ll with... The following function: = [ sheet name ], exclamation point, a cell to calculations. Formula =A1+B1 from row 1 to row 2, the getA1Notation ( ) method can the! I reference an entire row do I reference an entire row from a single cell without the., exclamation point, a cell that you want to answer here and complete the loop how I!