Help with IF and OFFSET formulas

muffingirl

New Member
Joined
Dec 26, 2022
Messages
1
Office Version
  1. 365
  2. 2016
  3. 2003 or older
Platform
  1. Windows
  2. MacOS
Hello everyone,

I am trying to do a catalogue of items with pictures (that will be inserted with a macro). But I am having problems to make excel select certain data than others when I am dragging down the formulas.

I have 4 columns where I need to put information. 1. for the item description 2. for the item code 3. for the link of the color picture 4. for the color code and I need to get this information every 10 rows. So I used the OFFSET and ROWS formula.

=OFFSET(Foglio1!$A$2;ROWS($C$7:C7)/10;) -> to find item description
=OFFSET(Foglio1!$C$2;ROWS($F$7:F7)/10;) -> to find color code

The problem is when I have the same item code with different colors, excel considers it as a new item and puts all the information in the next set of cells, skipping 10 rows. What I would like is excel to identify that if the item code is the same to put the second color code of the item, right below the first one and in the next set of cells i would have the next item code.

I tried to use the IF formula to achieve this, but I don't know what conditions to put to make excel go to the next item code and put other colors codes below the first one.

I am attaching a screenshot of the file. On the left side of the sheet you can find what I did, on the right side i put an example of what i would like the final output to be.

I hope it's clear and you can help me!

Merry Xmas to those who celebrate it.
 

Attachments

  • Schermata 2022-12-26 alle 17.18.32.png
    Schermata 2022-12-26 alle 17.18.32.png
    132.2 KB · Views: 21

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top