Forum Discussion
help with IF Formula
Hello lorie3345,
Unfortunately, your description is not completely clear to me. In general, your formula would look something like this:
=IF(A1="X", "Date from cell", "Not X")
I attached a sample
what needs to happen is:
first, the formula needs to find one of the specific card numbers (lets go with 123 for now) from the below selection.
then, D4 needs to display the total value located in column Z (formula needs to add all GST values for each row which has card number 123)
E4 displays the total column AA, F4 displays the total from column AB and finally, G4 displays the total litres from column Q
Basically, I need it to search out specific cards number, add all rows which contain that card number and fill in the specific cells with the specific information I need for my report. This report will be calculated on a monthly basis
I will need to repeat the formula for each card number but the rest will be staying the same.
The information will then be auto-populating a master summary worksheet to get year to date totals based on the sum of the other monthly worksheets
Does this make sense or is this impossible to do?
- PReaganNov 10, 2020Bronze Contributor
- lorie3345Nov 10, 2020Copper Contributor
PReagan that is perfect, thank you so much!
Could I ask also how you converted the raw data to a table to be used in the formula?
- PReaganNov 10, 2020Bronze Contributor
My pleasure!
To convert data into a table:- Select a cell in the range
- Home tab, Styles Section, "Format as Table", verify your table range and check if your table has headers.
- In any formula, you may refer to the table using Table1[Header] where "Table1" is the name of your table and "Header" is the name of your header.