I am a poker and slots streamer and I use excel alot to export values for my stream overlay.
I have come to a difficult situation where I need one of the bellow behaviors:
Create a button to send a value to a specific cell using something like VLOOKUP
Automatically make a cell update on higher of two values, or else keep it's value.
I'll attach some images for you to better understand:
I have a table on this sheet where I keep all info about the games
Slots Sheet
On this second sheet I have a dropdown on Column B where I pick the game from the first sheet and then fill up C (Best Win) and D (Best Multiplier) columns with Vlookup
SlotStream Sheet
On this second sheet I have some referral cells where I keep the scores for this day on this slot and add the bet size between parenthesis
Today Result + Bet size
So basically, I have a new highscore on this slot "Sweet Bonanza", and I need to keep its "best win" and "best x" updated on the first sheet, using the columns S and T from the second sheet.
One important thing here is that after the stream I will delete the inputs on the second sheet (slotstream), so the values should be sent and kept on the first sheet.
It's my first post here so I am sorry if I did not make myself clear. If you have any question please feel free to ask me.
Thank you in advance.
Ricardo Mateus
Related
A bit of background before I start. Essentially, I've got all workers to fill out a form of their 'whereabouts' and what work they did, this then automatically populates into the correct fields etc. Using Power Automate, however, this is in table format and will literally update a a type of master.
My answer to this has been to just pull every cell from the Master table (e.g =A1 of x sheet) that my Power Automate flow creates and just bring it onto a centralised spreadsheet. Then from my forms submission there is a unique reference for form submission in cell G on every row, which will be the time and date they submit their response.
My data all has formulas in (as explained above), therefore the last row will be pretty difficult to find as I can't just find the last row as I usually would - so this would usually just go to the last cell where there aren't formulas, right?
How would I be able to find the correct rows to copy over?
Ideally, I would check to see the values value in column G that appears in any other sheet, if they do, do not copy. If they don't then copy over and insert rows above the cell which contains the text 'Sub Total'
Not sure if I've just fully confused myself and it's super easy but I just can't figure it out and even get started on it.
I am struggling to even think of a solution, apologies.
I am currently working on a database (that's why I needed to blur some cells.) and I want to copy some data from the first sheet according to the graduation status. We are planning to use this database for next years too, so I want it to copy the data automatically when someone adds information. I wrote a formula for this, it is copying the data as I want but it cant skip the false condition; as it can be seen, the 8-9-16-17th row in General Sheet is copied to Student Sheet.
I saw another problem like mine and tried to implement the formula in my sheet but I couldn't make it work.
The problem that another person was dealing with: Get cell value but skip row if wrong
The formula I found and tried to implement in my Excel book: =IFERROR(SMALL(IF(($B$2:$B$15="Denied"),$A$2:$A$15,""),ROW()-2),"")
The formula I used in my Excel book: =IF(GENERAL!E3 = "Student";Table1[#Name];"")
With Excel 365 you can use the Filter() function. In the sreenshot I used
=FILTER(A:C,B:B="student")
Be aware, though, that with any formula solution, the result will be dynamically recalculated, so if you are planning on adding any data to the filtered table, these manual data entries will become a problem when the formula updates and the previous results occupy different positions.
If your goal is to get a one-time copy of all the non-graduated Students in Sheet A, you could just sort the sheet by the status column and copy/paste the desired data into a new sheet. That pasted data will not change and you can make manual edits.
I have one workbook with 8 sheets per country (i.e. France, Belgium, etc.). Apart from these sheets I have "Mastertab" and "Database".
Country-sheets are created in the same way (they have the same template). These templates are made to track expenses (therefore for example, France may have 10 expenses, Belgium 3 and UK 81).
What I would like to do is to create a macro (because I think it is impossible with formula if I want to avoid blank rows) that will:
Find last row where is any data/value in column K.
Select all data (row that will be indicated in point 1 and columns B-P).
Paste this selection to the Mastertab.
Continue doing 1-3 for other countries/sheets KNOWING that data should be pasted just below the previous one (so it has to find first blank row and paste data there).
Example:
First row with data for each country is 18. This is the place where first line with expense is posted. User will fill in only data in column K (all other columns are filled with formulas, vlookups, etc.)
Assuming that I have 3 expenses for France, I want Excel to select B18:P20 and paste into Mastersheet in cell B18.*
*Next pasting in Mastersheet should be from cell B21.
Hope it is clear. :)
Thank you in advance,
Marek
you would definitely be stretching the limitations of Excel formulas if you tried using formulas to do this.
You can use VBA to do this, but you're going to probably going to need the user to trigger the macro every time they make an entry. If you need the master to be dynamically updated then that's going to be harder again.
I think the cleanest way to do this is to have a macro that builds the master list from scratch every time you run the macro, i.e. deletes the Master sheet, and recreates it again. This way you don't have to deal with reorganizing the master output every time a new row is added. That would require a lot of additional logic.
If you are doing a multi-user environment with concurrent updates, then this approach will not work, as you would need an additional server to handle messaging between each user. At this point, you're better off not using Excel.
If each user will add their data, run the macro and send the sheet to the next user you could concoct a macro approach.
From a very high level:
Create a macro to co-ordinate all that comes below
Delete everything in your master (MasterSheetName.Cells.ClearContents will keep the formats if you need it)
Create an index which keeps track of the last row with data in your master sheet. This will start at 1
Iterate through each of the country sheets
https://support.microsoft.com/en-ie/help/142126/macro-to-loop-through-all-worksheets-in-a-workbook
Iterate through column K looking for values
Iterating through populated rows in Excel using VBA
In this example they are looking at column A. You can replace 1 in the sh.Cells(row,1) to sh.Cells(row,11)
Copy the data to the mastertab
Copy from one workbook and paste into another
I have this out of class research project that is dealing with a lot of data. I dont want to manually copy and drag down the data as I have thousands of cells to do this for. Here is a picture of some data so I can explain what I am doing.
enter image description here
I have multiple titles of a baseball card pack and under that I list the cards in the pack and their price. I want to move the title in B to A for all the baseball cards in the pack. Here is a picture to make that more clear:
enter image description here
My thoughts on the formula to do that would be among the lines of if C[i] column is 0, j=i, A[j++] column is equal to B[i] until B[j] is true and C[j] is false. I have no experience with excel but this would really save so much of my time on this project.
EDIT: After successfully figuring out how to fill column A with the titles, how would I lock the values so that the formula doesn't update them anymore. So if I sort the data and the order is rearranged, the cards will continue to have the proper title. So far I am just copying the title column to notepad, recopying and the pasting it in column A.
I guess column C is the price, so when a title appears, then there is no price, is a blank cell. So if that is true you could use:
=IF(C2="";B2;A1)
I tested with some data and it worked perfect (except for row number 1, but you could handle it with another IF)
Here's my data (please, note my excel is spanish, so my formula is in spanish)
Usually with excel coding, since there aren't loops, instead I use a lot of if-then statements. The following code worked on my sample data (sorry not sure how to include an image):
=IF(ISBLANK(B2),A1,IF(ISBLANK(C2),B2,A1))
The first isblank check is for the blank rows you have interspersed in your data.
For this code, you will need to have a blank 1st row, and insert it in cell A2.
I have an excel sheet that gets dumped out from a model I use. Unfortunately, I have to take a lot of time by hand to fix these sheets every day. However, it can be really easy to work with if this one change is made.
I attached a picture, the left is what it comes out of the model as, the right is what I would like it to be like in a new sheet. The only problem I foresee is the number of values in the second column is different every time, so the labels in the first column aren't always in the same place.
Any ideas on how to accomplish this would be appreciated. Picture
Fill in the first cell by hand and then just autofill this easy formula:
F3=IF(F3<>"";F3;F2)