need to copy data from one sheet to another depending on a value of the first sheet - excel

i have never used excel except for in college and well that was a while ago, what i have is 3 sheets sheet 1 contains all user information sheet 2 is company information and sheet 3 is company member information,
now what i need to do is this,
i need to loop through sheet 1 column K and search for what is not "Individual" then i need the value of sheet 1 column A and put that in sheet 3 column C
i also need the index of the same row that does not equal "Individual" and use that to grab the value of sheet 2 column A and put that in sheet 3 column B
hopefully that makes sense and is actually possible and any ideas would be greatly appreciated!

Related

match two columns in seperate sheets and add other two columns

I have 2 excel spreadsheets in a single excel file. Both of these files have a Campaign Name column and sum_revenues column
My first problem is that I want to match the Campaign Name column in both the sheets and if they match then I want to add the sum_revenues value in the 1st spreadsheet to sum_revenues in the 2nd spreadsheet
I know that sumif or sumifs will be used but I do not know how I can apply them.
The output should be the addition of sum_revenues column in both the sheets based on the Campaign name matching criteria in the sum_final column which is present on the 2nd sheet.
I hope I am clear about the question but please let me know if there is any confusion.
Below is how sheet 1, Sheet 2 looks like.
Sheet 1:
Campaign Name sum_revenues
ABC 40
DEF 60
Sheet 2:
Campaign Name sum_revenues sum_final
ABC 30 70
GHI 10 0
Now please note that in Sheet 2 in which I want to output is that sum_final column has the sum_revenues added up from both the sheets because ABC is present in both the sheets and it should show 0 for those which do not match.
Try:
=IFERROR(VLOOKUP(A2,Sheet1!$A$2:$B$3,2,FALSE),0)+B2
Sheet 2 Images:
Below formula may help you, assuming that your sheet1 data available in column A & B and sheet 2 data available in Column D & E and finally F would be the result.
Type the formula
sumif(e:e,d:d,a:a)+sumif(a:a,d:d,b:b) +e3

RE: VBA - (VLOOKUP) + (VALUE +1)

I am completely new to VBA and an amateur to Excel. I am currently trying to learn VBA and so decided to set myself an achievable goal for my own progression. This project is the creation of a tool for documenting and presenting feedback.
Sheet 1, Cell B2 will be my cell range that'll be used for the VLOOKUP to refer to, this is a unique identifier.
B2:B25 is information that's brought from a table in sheet 2 via a standard VLOOKUP formula and contains all relevant information on the person the unique ID is associated with.
I am trying to add a button in C6 which looks up the unique ID in sheet 2 and adds one to the value within a specific cell.
For example: Sheet 1:
Column A Column B Column C
Problem 1 Count Button to +1
(VLOOKUP used) (Macro Button)
Sheet 2: Table Ranges from A:W
A: Employee Number (Unique Identifier)
B: Name of employee
C: Training Status
D:W: Problems 1 - 20 (With count to how many of these problems the employee has encountered / made).
I have so far discovered that:
Sheets("Sheet2").Range("D2") = Sheets("Sheet2").Range("D2").Value + 1
Works for adding +1 to the value declared in Sheet 2, D2.
What I'm struggling with is introducing a VLOOKUP function so that the button first finds the employee number declared in Sheet 1:B2 then +1 to the value.
Sheet1
Sheet 2

Reference 1 Google Sheet to another

I have 2 sheets here:
Sheet 1 - image 1 and
P.O. - image 2
What I would love to happen is that when I choose "Y" from Column A(Sheet 1) dropdown, then the Data from the ADJACENT ROW in Column A -COLUMNS C and D from the same sheet(Sheet 1)- will be populated/copied to the other sheet(PO).
So, it would be Sheet 1 Column C Data going to PO Sheet Column A, and Sheet 1 Column D Data going to PO Sheet Column B.
I have tried using my own IF code but it did not work.
=IF('Sheet 1'!A8:A="Y",(A2=B8,""))
Thank you,
All help will be greatly appreciated.
[1]: https://i.stack.imgur.com/Kw6Ul.png
[2]: https://i.stack.imgur.com/5OJIM.png
Your syntax is messed up.
Po A2=
=ARRAYFORMULA(IF('Sheet 1'!A8:A="Y", 'Sheet 1'!C8:C,""))
A better formula for Google sheets would be: Po A2=
=FILTER({'Sheet 1'!C8:C,'Sheet 1'!D8:D},'Sheet 1'!A8:A="Y")
Note that the last solution will not work in other inferior spreadsheet solutions, notably, Microsoft Excel.

Linked columns in an Excel document

I'm trying to create an excel document with two sheets, the first one containing a list of fruit types, for example
ID Description
1 Apple
2 Orange
3 Pear
...
The second sheet would contain a reference to a row from the first sheet and some additional data.
For example
Fruit_ID Quantity Customer
1 12 Chris
3 7 Jenny
...
And when a user is adding a new row in the second sheet he would be presented with a drop down list of entries from the second sheet when setting the first column value.
The number of rows in the second sheet is dynamic ( user will be adding data into it).
How can I do this ?
Select the cells where you want to display dropdown.
Go to Data Tab > Data Validation
Enter the following criteria
Allow:List
Source: =OFFSET(Sheet1!$A$1,1,0,COUNT(Sheet1!$A$2:$A$1048576))
Change the sheet name accordingly and it will show drop-down based on the Sheet1, column 1.
Let me know if it works.

Compare 2 sheets in 2 csv and replace value from one to the other

I'm trying to compare two sheets in excel and if matching "A" value then copy the value in the "B" to the other "I".
Ex:
Compare
Sheet 1 column A to Sheet 2 column A, if the Alpha numbers match then copy the value in Sheet 1 colum B into Sheet 2 colum I.
I have reference number in both A in need to replace the old image url by the new image url.
I have over 15 000 items and I will have to do this everyday so any automation would be great.
I have 2 csv files.
Any help would be appreciated
Thanks!
In Sheet2 column I using formular:
=IF(A1=Sheet1!A1,Sheet1!B1,"Value_if_not_match")
Hope this can help

Resources