My goal is to enter in column E on sheet 2 whether or not the customer used the discount code "BUNDLE3".
I would like to look at the order number in sheet 2 represented by column A then look at Column A in sheet 1 (where my orders data is) and if they match, then look at column M(discount code column in sheet 1) and if Column M has the text "BUNDLE3" then return Yes, if not return No.
The formula I was using is the one below, where orders_export_1 is sheet 1. It doesn't work because its not looking at the order numbers at all.
=IF(ISNUMBER(SEARCH("BUNDLE3",orders_export_1!M2)), "Yes", "No")
Please refer to image links for more clarity.
sheet 2, where I am trying to use an excel function in order to find out if an order (represented by column A) used the discount code "BUNDLE3"
sheet 1, This is my orders data. Sometimes orders take up multiple rows since they are listing the products customers have purchased.
In Sheet2, E2, put this formula and drag down:
=IF(COUNTIFS(orders_export_1!$A$2:$A$100,A2,orders_export_1!$M$2:$M$100,"BUNDLE3"),"Yes","No")
Adjust the range on orders_export_1 as needed.
Related
For my abilities in Excel I believe that has too many facets and I am certain using V/HLookup individually will not achieve the objective.
I have a list of products on Sheet 1, on Sheet 2 I need to make a a simple calculator selecting from the products list.
The products list is one large table with the product part, price, rrp etc which can be filtered by part name.
On Sheet 2 I would like to try the following:
Part Type
Part Name
Price
Wheels
(Column B - Row 2)
row
Exhaust
row
row
Part 3
row
row
Part 4
row
row
I need to make the 'Column B- Row 2' a drop down list of all the parts corresponding to the 'Part Type 'Wheels''.
Assuming you have Excel 365, this can be done using the FILTER and XLOOKUP FUNCTION
Sheet 1 sample Data
Result in Sheet 2
Formula in cell E3
=TRANSPOSE(FILTER(Sheet1!B:B,Sheet1!A:A=Sheet2!A3,""))
Data validation in Cell B3 (dont forget the # symbol in formula)
Formula in Cell C3 for price
=XLOOKUP(A3&B3,Sheet1!A:A&Sheet1!B:B,Sheet1!C:C,"Not Found")
looking for some help speeding up sorting pages on a spreadsheet.
Currently we have 4 sheets absolutely packed with UK postcodes/zip codes.
At the moment we go into each sheet and sort the entire sheet to show the information for the specific postcode we enter. (Always returns one line of info each sheet)
Is it possible to just have a separate sheet where we enter the postcode it it finds the match from each sheet and displays 1 line from all 4 sheets? Hopefully that makes sense.
A idiot's guide tutorial would be great
So, let's say we have four sheets (sheet1, sheet2, sheet3 and sheet4). They all look like this:
Create your 5th sheet. Here, I'm calling it "lookup_here". You should look up how to use vlookup formulas as I'll fail to completely explain it here for lack of time. Basically, you are :
Looking up a value (such as 5F3322 postal code) in a table array
(such as sheet1 columns A, B, C and D.... keeping in mind that your
lookup value must be in the first column of the array)
Then returning the column index (like column B is 2, column C is 3, etc).
And finally stating if you want an exact match (false) or approximate
match (true). Almost always use false.
Here is what the final output would look like, and I'll put some sample formulas below the picture.
So, you'll input your postal code value in cell B1. Then you will have formulas in B3 through D6. It will take some time to build these.
B3 Formula: =VLOOKUP($B$1,Sheet1!$A:$D,2,FALSE)
B4 Formula: =VLOOKUP($B$1,Sheet2!$A:$D,2,FALSE)
B5 Formula: =VLOOKUP($B$1,Sheet3!$A:$D,2,FALSE)
B6 Formula: =VLOOKUP($B$1,Sheet4!$A:$D,2,FALSE)
Column C formulas are similar, but the 2 before false will be a 3.
Column D formulas are similar, but the 2 before false will be a 4.
I have two lists in Excel, one with the columns Code, Company, Email and Invoice (sheet 1) and another list with the columns Code, Company and Invoice (sheet 2).
Now, how can I create a new list that only contains rows where the value in the column Code in sheet 1 is identical to the value in the column Invoice in sheet 2?
EDIT: OK, so I used MATCH in Sheet1 as suggested like this:
=MATCH(A3,Sheet2!D:D,0)
However this only returns the row number when there is a match. But I need to return a specific cell value in Sheet2 for every row where there is a match. How can I do that?
Not sure I get exactly but I suppose you want to import from sheet2 to sheet1 some columns where there's match sheet1/code = sheet2/invoice. You can try this formula in Sheet1 E3 then copy/paste it in all cells that you want to import:
=IFERROR(INDEX(Sheet2!E:E, MATCH($A3,Sheet2!$D:$D,0)), "")
I have a phone number list on sheet1, on sheet 2 in column A I have a list of area codes (0131), in column B I have the area name (Edin).
I am looking for the formula to be entered into sheet 1, which will look up on sheet 2 and return the correct area name (column B) for the area code.
The formula must look at the first 5 characters of the phone number field detailed in sheet 1.
Any help is appreciated
If I have not explained it enough please let me know
Thanks
I would advise reading up on the VLOOKUP function.
Create a second column 'B' in sheet 1 using this formula:
=LEFT(A1, 5)
drag this down so that you now have the area numbers isolated.
next create a third column on sheet 1 and use the following formula:
=VLOOKUP(A2,Sheet2!A:B, 2, FALSE)
This should take the area code you have isolated (A2) in sheet 1 and match it to a row on the array in sheet2 (Sheet2!A:B) and return the value on the second column (2), the FALSE indicates exact matches only.
If having issues e.g #N/A values for all rows please ensure the area numbers in sheet 2 and the isolated sheet numbers in sheet 1 are in the same format.
I have two sheets. Sheet1 has a list of products and Sheet2 has a list of products and their location. Since the product can be in multiple locations, there are a good amount of duplicates in Sheet2.
There are 26,000 products. I have assigned each product a number in Sheet1, 1-26,000. Is there a way for me to assign each number to the correct product in Sheet2?
This is a example of what I need:
The top table would be Sheet1 and the bottom table would be Sheet2, the one with duplicates.
This is what they look like right now:
Sheet1:
Sheet2:
Please let me know if I did not explain this well enough. I appreciate your help!
copy your column A in sheet 1 to column c
Then in your sheet 2 column C row 2, use =vlookup(B2,'sheet1'!B:C,2,0)
(if your first item is in B2)
Drag your formula down and it should work.
Use VLOOKUP or the INDEX MATCH combo formulas in the second sheet to locate the ITEM IDs in the first worksheet
If you're Item ID's are sorted the way you illustrate it, then you can simply use an IF formula:
For example you have a data as shown:
Enter this formula in A2:
=IF(B2=B1,IF(ISNUMBER(A1),A1,1),IF(ISNUMBER(A1),A1+1,1))
Above formula will give you what you've described.
Again, your items should be sorted so that same Item ID are in order.