I am trying to run a Vlookup to find the account name related to the ID. I have checked the format on both tabs, and it's the same, nevertheless the Vlookup is not working even if the value exists in both tabs.
This is my formula
VLOOKUP(L24,'Zuora Invoices 02/05/2022'!B:D,1,false)
Basically,the cell L24 would be the ID in sheet #1 and in the sheet #2 "Zuora invoices I have column D with the same ID and the column B with the corresponding account name.
With control F I am able to find the exact same value in the sheet #2 but the Vlookup result is #NA. If I try VLOOKUP(L24,'Zuora Invoices 02/05/2022'!D:D,1,false) then the Vlookup finds the ID value.
How can I make it work, so I can find the account name by comparing the account IDs?
Best
So vlookup() will be looking for the ID in Column B of the data range B:D that you give it.
If the ID is in column D then it will not work. vlookup works from left to right only.
You will need match() to find the position in column D and index() to find the result. Like so:
=index(B:B,match(L24,Zuora Invoices 02/05/2022'!D:D,0))
Edit the column for index as needed, I assumed col B.
use:
=VLOOKUP(L24, {'Zuora Invoices 02/05/2022'!D:D, 'Zuora Invoices 02/05/2022'!B:B}, 2, 0)
Related
I have a google sheet with all current staff information. I have a second sheet for when some piece of data needs changed. Last name, Location, job ect.
on second sheet I am looking to have someone:
Enter the user's first name in column B,
and or Last name in Column C,
I would like a drop down box generated in column D from the given info to contain all usernames found in the sheet with current information for all staff that have the given first and or last names provided.
Once a username has been selected, I can get all the pertinent data from that user with a vlookup from the sheet containing all staff info. For example if someone typed Scott in column B, I would like a drop down generated in column D with all staff that have a first name of Scott. Likewise if the last name was supplied and of course if both first and last was supplied.
Validation need to be done that's it,
1) Go to Staff Changes'!B2 and Data Validation> List from range & choose range from 'Staff Info'!B2:B
2) Select cell'Staff Changes'!D2 and Data Validation> List from range & range will be filter formula i.e 'Staffing Changes'N2:N.
Result
Few tweaks in vlookup:
I am not sure if you need username column twice if you don't need then change your vlookup formula from =vlookup(D2,'Staff Info'!A:K,10,0) to =VLOOKUP(D2,'Staff Info'!$G$1:$K,2,0)
Please provide access to trix in future so that changes & result can be shown in it.
UPDATE:
Use data validation as before & hide filter colum or use seperate sheet for filter formula & use query function in cell A3 =QUERY('Staff Info'!A:J,"select ' ',A,F,' ',' ',G,' ',I,' 'where A='"&A2&"' AND F = '"&B2&"' LABEL ' ''Date',' ''Current Last Name',' ''New Last Name',' ''New Building',' ''New Classification'",1) result wil be something like this
QUERY
I'm sorry this is titled so horribly.
I have a category column in a sheet (col H) and in another sheet I've got the unique values in those columns with unique(sheetname!H)
How do I get only the categories (col H values) whose value in, say, col F, is 'credit'?
A given category will always have a given col-F value: will always be credit or debit. And will always belong to a certain person, as well. Say the person's name is in column B. How do I display the person who "belongs" to that category?
Using queries should make this simple.
Something like this should work:
=QUERY(A:H, "select H where F='credit'",0)
More details on how the information is stored would help.
The first parameter is the range of cells to perform the query on. The second parameter is the query. The third is the number of header rows at the top of data.
More info on QUERY: https://support.google.com/docs/answer/3093343?hl=en
To display the names in column B along with the categories, you can use:
=QUERY(A:H, "select B,H where F='credit'",0)
try:
={H1; FILTER(H2:H; F2:F="credit")}
for unique:
={H1; UNIQUE(FILTER(H2:H; F2:F="credit"))}
I've been struggling with an index and Match formula together with countif to figure out how to look in column B (clacc_no) to look for unique values and then to count the number of times order_no (column A) that relate to the unique value in column B. In the image below you will notice clacc_no 84242 is shown twice but there are two order_no that relate to this, so I would like to receive this as the count.
In addition, I would then separately like to sum up the order_total_sell (column C) related to these unique values in Column B.
Can anyone point me in the right direction as Index and Match with countif and sum are not working for me unless I'm just doing something wrong?
Many thanks for reading.
try:
=QUERY(B2:C,
"select B,count(B),sum(C),avg(C)
where B is not null
group by B
label count(B)'No. of Orders',sum(C)'Total Value',avg(C)'Average Value'")
I'm trying to make a spreadsheet to find the best price of a product in Google Sheets. I have the product description on B column, starting from the sixth row and below, the prices are on column E6 and on, (F6, G6, H6,...) Each supplier name is written on the fist row of their Columns. The lowest price is in column C and Column D displays the supplier with that price.
I've tried the min() function, but there's an issue, I need it to bypass 0 values.
On column C, I'm using this code =min($E6:$Z6) and for displaying the supplier I'm using =index($E$1:$Z$1,0,match(min($E6:$Z6),$E6:$Z6,0))
I'll add a screenshot of the problem.
wrap it into simple IF or IFERROR
=IF(MIN($E6:$Z6)=0, , MIN($E6:$Z6))
and the second one:
=IFERROR(INDEX($E$1:$Z$1, 0, MATCH(MIN($E6:$Z6), $E6:$Z6, 0)))
I have two google sheets.
-Sales Sheet
-Goal sheet
On the sales sheet:
Column I has a list of items
Column J is blank
On the goal sheet:
Column A has a list of items
Column I has a list of values.
I need a formula to enter on the Sales sheet, which will search for the item listed in column I for a matching item on column A of the goal sheet.
When a match is found, it needs to take the value found in column I of the goal sheet and place it into column J of the sales sheet.
I've tried several formulas using MATCH but I just can't seem to get it to work. Any help would be sincerely and greatly appreciated!!
I tired this formula, but it seems to be filling in the value from column A instead of the corresponding value from column I. I know I'm missing a step here, but I don't know where to start:
=INDEX(IMPORTRANGE("[Sheet ID]","Page!I1:I500"),MATCH(A121,A1:A500,0))
I figured it out:
=INDEX(IMPORTRANGE("[sheet ID]","Goal-sheet!$I$2:$I$500"),MATCH(I5,IMPORTRANGE("[sheet ID]","Goal-Guide-Internal!$A$2:$A$500"),0))