I have two sheets in Excel:
Sheet1: Contains a list of names, month of payment and the payments made by them i.e Name, House No, Payment. (3 columns)
Sheet2: Contains a receipt format which is going to be printed. It has three fields empty which are Name, House No, Payment. (3 rows)
What I want to do is when a list is made manually in Sheet1, the data from there automatically goes to Sheet2 and places itself in its respective places i.e name from Sheet1 to name in Sheet2.
I studied VLOOKUP and INSERT and MATCH but I'm not getting the hang of it.
Can someone please explain how things should work?
I'm guessing that for printing a receipt you only want one row fro one sheet into one column of another at a time, so in your second sheet, assuming Name is in A1 on each sheet, select B1:B3 and:
=TRANSPOSE(Sheet1!A2:C2)
entered with Ctrl+Shift+Enter
This replicates whatever is in Sheet1 A2 into Sheet2 B1, in Sheet1 B2 into Sheet2 B2 and so on.
Alternatively in Sheet2 B1:
=Sheet1!A2
in Sheet2 B2:
=Sheet1!B2
in Sheet2 B3:
=Sheet1!C2
Related
Sheet 1 goes like this:
Sheet 2 should be like this:
ITEMS QUANTITIES
APPLE 4
GUAVA 2
Sorry for writing the spreadsheet in here, as I'm not allowed to include more than 1 image yet.
Suppose you have the following named ranges:
ITEMS being the data in ITEMS column on your Sheet1;
QUANTITY being the data in QUANTITY column on your Sheet1.
Enter the following formula in Cell D2 on your Sheet2:
=IFERROR(INDEX(ITEMS,MATCH(0,COUNTIF($D$1:D1,ITEMS),0)),"")
Please note it is an array formula which requires you to press Ctrl+Shift+Enter upon finishing the formula in the formula bar.
Drag it down until there is no more items showing up.
Then you can enter the following formula in Cell E2 on your Sheet2 and drag it down:
=SUMIF(ITEMS,D2,QUANTITY)
As you can see from the above screenshot, there may be some empty cells in Column D as I used IFERROR to return blank cells if there is no more distinct item. The corresponding quantity will be 0 consequently. You can choose to delete them or hide them on your worksheet.
By the way I am not sure why Pivot Table is out of the picture as it is actually a faster and easier approach than formula and you do not have to worry about the blank cells returned by the formula if the number of unique items is uncertain. All you need to do is to highlight the source data, insert a pivot table, and put the ITEM in Rows and QUANTITY in Values field.
EDIT: Update to also extract unique distinct values:
Enter this formula in cell A2 of Sheet2:
=IFERROR(LOOKUP(2,1/(COUNTIF($A$1:A1,Sheet1!$A$2:$A$300)=0),Sheet1!$A$2:$A$300), "")
Change 300 to the actual last row of your data and copy that formula down until it returns empty cells.
Then just use a regular SUMIF in cell B2 of Sheet2:
=SUMIF(Sheet1!A2:A300, A2, Sheet1!B2:B10)
Then, type whatever fruit you're looking for incell A2 of Sheet2. Continue like this in the following rows for all the fruits you need.
Sorry if the title is off, but I have no way of making this short.
I have an excel file with 2 sheets: Sheet1 has the first column filled with data, but in a random pattern (ex: 6 consecutive cells are with data, 6 are without, other of the following alternate; basically there is no way of knowing if the next cell has data or not). I want to copy the first column from Sheet1 into Sheet2 without any blank cells or duplicate ones (the order of the data can be maintained or be changed as the result of the formula).
Can this be done without any coding?
Assuming your Sheet1 is as follows
Then in Cell A2 of Sheet2 enter the following formula
=IFERROR(INDEX(Sheet1!A$2:A$50,SMALL(INDEX(NOT(ISBLANK(Sheet1!$A$2:$A$50))*ROW($A$1:$A$49),0),COUNTBLANK(Sheet1!$A$2:$A$50)+ROW($A1))),"")
Drag/Copy down as required. Change range in formula as needed. See image for reference.
EDIT :
To get unique values from Column A of Sheet2 enter below formula in Cell B2 of Sheet2
=IFERROR(INDEX($A$2:$A$20,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$20),0,0),0)),"")
I am currently working with 3 sheets in excel. They are called Sheet1, Sheet2, and Summary. In Sheet1 and Sheet2, I have a list of states with a column for revenue. In the Summary sheet, I want to do an SUMIF statement as if the state in Summary is in Sheet 1 and 2, then I would like to add both revenue amounts together. So if the state of PA was in the Summary page, and it showed up in Sheet1 and Sheet2 then I would like to add both cells together. Now if it showed up in just Sheet1, I would still like to have it add it to the Summary page as it should be just adding a 0 since it is not in Sheet2. Any help with this would be great. I have used COUNTIFs before but I cannot seem to get this to work correctly. Thanks!
Demo
I assumed few things here:
Assumptions:
Sheet1 has state names in Column C and corresponding revenue in Column D
Sheet2 has state names in Column C and corresponding revenue in Column D
Summary sheet has state name in cell C6 and you want to see the total revenue of states (from sheet1 and sheet 2) in column D of Summary sheet.
To do this use this formula in cell D6 of Summary sheet. You may need to modify the range of table which i assumed "C4:D5". It may be different for you.
=IF(ISERROR(VLOOKUP(C6,Sheet1!C4:D5,2,FALSE)),0,VLOOKUP(C6,Sheet1!C4:D5,2,FALSE))+IF(ISERROR(VLOOKUP(C6,Sheet2!C4:D5,2,FALSE)),0,VLOOKUP(C6,Sheet2!C4:D5,2,FALSE))
Based on more description here is the updated formula:
SUMIF(Sheet1!$B$3:$D$11,Summary!C3,Sheet1!$D$3:$D$11)+SUMIF(Sheet2!$A$3:$B$11,Summary!C3,Sheet2!$B$3:$B$11)
I'm trying to create a summarize information for all of the supplier our company have. I have my sheet1 as my main database where in all our suppliers are listed. I would like to create several additional sheets which will contain each specific nature of business of the suppliers.
What I would like to happen is, given that my sheet2 is for the suppliers who specialize in "PRINTING", sheet3 is for those who specialize in "I.T EQUIPMENT". Whenever I add a supplier on my sheet1, it will automatically be added on my sheet2 or 3 as well if it matches its specialty. Please help!
Thank you in advance!
Considering your Sheet1 is Master Sheet where names of all Suppliers and their Specialties are listed in Column A and Column B respectively.
If in Sheet2 you want to list down the all Suppliers with Printing as specialty, write following formula in Cell A2 of Sheet2
=IFERROR(INDEX(Sheet1!A$2:A$25,SMALL(IF(Sheet1!B$2:B$25="Printing",ROW(A$2:A$25)-ROW(A$2)+1),ROWS(A$2:A2))),"")
and drag/copy it down as required. This is an array formula so enter this formula by pressing Ctrl+Shift+Enter.
Likewise, if in Sheet3 you want to list down all Suppliers with IT Equipment as specialty, write following formula in Cell A2 of Sheet3
=IFERROR(INDEX(Sheet1!A$2:A$25,SMALL(IF(Sheet1!B$2:B$25="IT Equipment",ROW(A$2:A$25)-ROW(A$2)+1),ROWS(A$2:A2))),"")
and drag/copy it down as required. Again, this is an array formula so enter this formula by pressing Ctrl+Shift+Enter.
To automatically update the list in Sheet2 and Sheet3, you'll have to take care of two things:
1. Range in the above formula is row 2 to row 25, you'll have to enter the range till the row you think your list could be extended. For example if your list will not get past the row 1000 then formula for Printing in Sheet2 becomes
=IFERROR(INDEX(Sheet1!A$2:A$1000,SMALL(IF(Sheet1!B$2:B$100="Printing",ROW(A$2:A$1000)-ROW(A$2)+1),ROWS(A$2:A2))),"")
2. You'll have to drag/copy down this formula in Sheet2 and Sheet3 till the row you think the list could extend based on the Sheet1 data.
You can even use just one formula for all the sheets as follows:
=IFERROR(INDEX(Sheet1!A$2:A$25,SMALL(IF(Sheet1!B$2:B$25=$C$1,ROW(A$2:A$25)-ROW(A$2)+1),ROWS(A$2:A2))),"")
where Cell C1 of each sheet will have the specialty name.
See image for reference
I have the following table in Sheet1, which will be a password-protected worksheet:
A1: ZIP Code B1: City Name
A2: 8272 B2: Manila
A3: 6225 B3: Quezon City
A4: 2986 B4: Caloocan
A5: 1632 B5: Zamboanga
In Sheet2, I have the following column headers:
A1: Select ZIP Code B1: City Name
Basically, in Sheet2, cells under column A are drop-down lists containing the ZIP codes in Sheet1. Once a user selects a ZIP, the corresponding city name should appear to the right, just so the user can visually confirm that he/she entered the correct ZIP code.
I've managed to retrieve all the ZIP numbers from Sheet1 and put them in drop-down lists to all cells from Sheet2!A2 downwards. My problem is: In Sheet2, how do I display the corresponding city name in B[rownum] based on what is selected in A[rownum]? I tried using VLOOKUP but can't seem to dynamically point to the look-up value (the first argument in VLOOKUP) across all the rows beneath Sheet2!B1. I need a formula, not VB code.
Hope I got this.... Sheet1 is the database.
Sheet2 you will enter zip codes in column A and you want the city names to appear formulaically in column B.
In B2, put this formula and copy down:
=IF($A2="", "", VLOOKUP($A2, Sheet1!$A:$B, 2, 0))